[GH-ISSUE #2967] Inkscape cannot export GIMP .xcf files #1857

Closed
opened 2026-05-05 08:31:36 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @kmotoko on GitHub (Sep 17, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2967

  • Problem: With the Inkscape profile, when you try to save as GIMP .xcf File, the following is returned from Inkscape:
Gimp must be installed and set in your path variable.
Traceback (most recent call last):
  File "gimp_xcf.py", line 284, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect
    self.effect()
  File "gimp_xcf.py", line 253, in effect
    raise GimpXCFGimpNotInstalled
__main__.GimpXCFGimpNotInstalled
  • Solution: Add the following to the Inkscape profile before the include disable-programs.inc rule,
# Exporting GIMP .xcf requires:
noblacklist ${HOME}/.config/GIMP
noblacklist ${HOME}/.gimp*
  • System Info:
    • Firejail version: 0.9.58.2
    • Linux version: Debian 10, Linux kernel 4.19.0-6-amd64

Note 1: The mentioned solution rule does not exist in the latest Firejail version as well.
Note 2: In Firejail v0.9.58, the Inkscape profile did not have noblacklist rules for Python interpreters, which causes lots of problems. I already added the following to inkscape.local:

# Enable Python interpreters for Inkscape

# Python 2
noblacklist ${PATH}/python2*
noblacklist /usr/include/python2*
noblacklist /usr/lib/python2*
noblacklist /usr/local/lib/python2*
noblacklist /usr/share/python2*

# Python 3
noblacklist ${PATH}/python3*
noblacklist /usr/include/python3*
noblacklist /usr/lib/python3*
noblacklist /usr/local/lib/python3*
noblacklist /usr/share/python3*

Originally created by @kmotoko on GitHub (Sep 17, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2967 + **Problem:** With the Inkscape profile, when you try to save as `GIMP .xcf File`, the following is returned from Inkscape: ``` Gimp must be installed and set in your path variable. Traceback (most recent call last): File "gimp_xcf.py", line 284, in <module> e.affect() File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect self.effect() File "gimp_xcf.py", line 253, in effect raise GimpXCFGimpNotInstalled __main__.GimpXCFGimpNotInstalled ``` + **Solution:** Add the following to the Inkscape profile before the `include disable-programs.inc` rule, ``` # Exporting GIMP .xcf requires: noblacklist ${HOME}/.config/GIMP noblacklist ${HOME}/.gimp* ``` + **System Info:** + Firejail version: 0.9.58.2 + Linux version: Debian 10, Linux kernel 4.19.0-6-amd64 **Note 1:** The mentioned solution rule does not exist in the latest Firejail version as well. **Note 2:** In Firejail v0.9.58, the Inkscape profile did not have `noblacklist` rules for `Python interpreters`, which causes lots of problems. I already added the following to `inkscape.local`: ``` # Enable Python interpreters for Inkscape # Python 2 noblacklist ${PATH}/python2* noblacklist /usr/include/python2* noblacklist /usr/lib/python2* noblacklist /usr/local/lib/python2* noblacklist /usr/share/python2* # Python 3 noblacklist ${PATH}/python3* noblacklist /usr/include/python3* noblacklist /usr/lib/python3* noblacklist /usr/local/lib/python3* noblacklist /usr/share/python3* ```
gitea-mirror 2026-05-05 08:31:36 -06:00
Author
Owner

@rusty-snake commented on GitHub (Sep 17, 2019):

Good catch, +1.
IMHO we should bring this in. @kmotoko only allowing ${HOME}/.gimp* didn't work?
Works it with

noblacklist ${HOME}/.config/GIMP
noblacklist ${HOME}/.gimp*
read-only ${HOME}/.config/GIMP
read-only ${HOME}/.gimp*
<!-- gh-comment-id:532242227 --> @rusty-snake commented on GitHub (Sep 17, 2019): Good catch, +1. IMHO we should bring this in. @kmotoko only allowing `${HOME}/.gimp*` didn't work? Works it with ``` noblacklist ${HOME}/.config/GIMP noblacklist ${HOME}/.gimp* read-only ${HOME}/.config/GIMP read-only ${HOME}/.gimp* ```
Author
Owner

@kmotoko commented on GitHub (Sep 18, 2019):

@rusty-snake I get the same error when only ${HOME}/.gimp* is allowed.

<!-- gh-comment-id:532779316 --> @kmotoko commented on GitHub (Sep 18, 2019): @rusty-snake I get the same error when only `${HOME}/.gimp*` is allowed.
Author
Owner

@netblue30 commented on GitHub (Sep 22, 2019):

@rusty-snake, put it in. We are already doing something similar with Thunderbird + Firefox.

<!-- gh-comment-id:533840325 --> @netblue30 commented on GitHub (Sep 22, 2019): @rusty-snake, put it in. We are already doing something similar with Thunderbird + Firefox.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1857
No description provided.