GNOME Bugzilla – Bug 633293
Export/Import
Last modified: 2021-05-26 09:26:49 UTC
There should be a way to export the findings. Make pngs and svgs out of the graph files, and export the tree as text, xml, and such. You should be able to re-import the xml exports for later interactive analysis. It won't give you the most up-to-date picture, but it'll let you come back to analyze stuff later without having to re-scan. And being able to export/import would let me share my scan with others, if I'm dealing with a shared drive. I'd say "take a look at this graph, it shows that you're hogging all the disk space! Import this xml file into baobab and click around if you need to figure out what files of yours are taking up all the space." I'd like that.
There's an implementation of import/export for Baobab available now at https://github.com/oliver/gnome-utils . The complete patch is also attached. The change adds "Open Snapshot" and "Save Snapshot" menu items. It dumps the currently displayed tree to XML file and can load that file later. There is currently no way to do import/export from command line, or to create snapshots on headless systems; this could be added later. So far, I see the following possibly open points: - what name to use for "import" and "export"? The current names might be confused with existing screenshot export feature - menu item accelerators (Ctrl+O, Ctrl+S) conflict with existing accels -> just remove accels for Import/Export? - should we use some special file extension for created files? What else do you think would be necessary to get this patch into Baobab? Btw. bugs #485713, #536503 and #616192 are about a similar feature.
Created attachment 199366 [details] [review] import/export implementation
Created attachment 199367 [details] [review] import/export implementation Actual full patch (the previous patch was missing one commit)
*** Bug 485713 has been marked as a duplicate of this bug. ***
*** Bug 676545 has been marked as a duplicate of this bug. ***
Comment on attachment 199367 [details] [review] import/export implementation the patch is obsolete: Baobab was rewritten after the gnome-utils split.
Created attachment 223677 [details] [review] Add ability to save and load reports in JSON format.
This patch adds a basic import/export functionality. It requires json-glib master.
Ciao Stefano! Glad to see you around... The patch looks pretty good at a quick glance, but I am not convinced that the appmenu is the right place for this...
Created attachment 223805 [details] [review] Add ability to save and load reports in JSON format Patch applies to the 'rework-toolbar' branch
*** Bug 536503 has been marked as a duplicate of this bug. ***
Created attachment 249698 [details] [review] Add ability to save and load reports in JSON format Updated patch on current master
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version of Baobab, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/baobab/-/issues/ Thank you for your understanding and your help.