--verb actions not possible in --shell mode

Bug #626854 reported by BenjaminBerg
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Wishlist
Unassigned

Bug Description

For gnome-icon-theme I had written a script that executes inkscape in --shell mode, and then renders all the icons with this instance into PNG files. This is working great, however, we also wanted this faster method for gnome-icon-theme-symbolic.

Now, here is the issue. The current script runs the following inkscape command:
inkscape -f #{icon[:file]} --select #{icon[:id]} --verb=FitCanvasToSelection --verb=EditInvertInAllLayers --verb=EditDelete --verb=EditSelectAll --verb=SelectionUnGroup --verb=StrokeToPath --verb=FileVacuum --verb=FileSave --verb=FileClose

Most of these can be done with --verb (deleting by modifying the xml, and the reset with non --verb commands in inkscape). However, the StrokeToPath (and FitCanvasToSelection) cannot be done in --shell mode.

I have though of different solutions, but all seem to not work (properly):
 1. Starting one inkscape instance with the command line repeated for the different icons (this causes multiple windows to open up)
 2. Use an extension to save/load a document. This does not work because --verb cannot execute extensions (and would be problematic because one would need to load an extension outside $HOME likely)
 3. Remote controlling inkscape using a11y methods. I have not looked into this closer as the a11y stack currently crashes here.

No idea what a good solution might look like. I guess that a way to close the a file, and open a new file in between other --verb options, might work pretty well.

Tags: cli
su_v (suv-lp)
tags: added: cli
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

Verbs have been removed in favor of actions in Inkscape 1.2.

Closed by https://gitlab.com/jhofinger

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.