Cannot query Inkscape version from extension
Summary:
In previous versions, the following worked: https://gitlab.com/moini_ink/inx-pathops/-/blob/master/pathops.py?ref_type=heads#L67
Now, with Inkscape 1.3 from ppa, it seems stuck in doing nothing, and aborting it either results in a meaningless extension error (moini_ink/inx-pathops#10 (closed)), or a crash of the whole Inkscape program that is 'not responding'.
I've also tried the InkMan way, by calling ink_version = os.environ.get("INKSCAPE_VERSION", None)
- but that returns None
, so the version, aside from not being query-able, is also not available as an environment variable from extensions.
Querying the Inkscape version directly on the command line works, however.
I cannot tell whether this is a problem with Inkscape or with its extensions, so I'm putting it into inbox.
Steps to reproduce:
- get https://gitlab.com/moini_ink/inx-pathops/-/archive/master/inx-pathops-master.zip, unpack and put it into your user extensions directory
- open Inkscape
- draw a couple overlapping paths
- Extensions > Boolean Operations > Difference (multiple difference is still needed even with shape builder and new path operations)
What happened?
The little dialog that usually shows 'extension working' pops up, but then it is neither filled with a text, nor does anything else happen. No increased processor load, it seems like it is just waiting for something to happen that never happens. Aborting either results in an error message or in Inkscape being shut down by the system.
What should have happened?
I'd have liked to get the Inkscape version number from inside my extension, so I can adjust the Inkscape commands to the version.
Version info
Inkscape 1.3 (1:1.3+202307231459+0e150ed6c4)
GLib version: 2.72.4
GTK version: 3.24.33
glibmm version: 2.66.2
gtkmm version: 3.24.5
libxml2 version: 2.9.13
libxslt version: 1.1.34
Cairo version: 1.16.0
Pango version: 1.50.6
HarfBuzz version: 2.7.4
OS version: Linux Mint 21.1