Cannot install patch because of previledges restriction

Asked by frank on 2010-12-26

I cannot overwrite/patch the file in the extension directory of inkscape. It tells me I'm not "the owner".
How can I solve this problem?

Question information

English Edit question
Inkscape Edit question
No assignee Edit question
Last query:
Last reply:
su_v (suv-lp) said : #1

Which OS and Inkscape version are you using?
What patched version of '' are you referring to?

frank (notolose) said : #2

my versions:

Ubuntu 10.10 - the Maverick Meerkat
Inkscape 0.48

The patch can be found here:

it is from this post:

thx for your answer

frank (notolose) said : #3

This is the error inkscape gives me when I try to export a xcf

Traceback (most recent call last):
  File "", line 185, in <module>
  File "/usr/share/inkscape/extensions/", line 215, in affect
  File "", line 179, in effect
    x = open(xcf, 'r')
IOError: [Errno 2] No such file or directory: '/tmp/tmpSH2WZk/Work.xcf'

jazzynico (jazzynico) said : #4

Hello Frank,

On Ubuntu, you need to use sudo to copy a file to a protected part of the filesystem.
Assuming the python file is on your home, the command line would be:
# sudo cp ~/ /usr/share/inkscape/extensions/

While your at patching this extension, you can also overwrite the inx file (the trunk one provides some new options).


frank (notolose) said : #5


I've put the new in the home location. Then I past the code you give me in the terminal, the old is not been replaced/overwritten by the new one though.

what could the reason be?

thx for your reply

jazzynico (jazzynico) said : #6

Do you get a feedback from your command line (error, warning)?

# ls -l /usr/share/inkscape/extensions/gimp_xcf.* should return a recent date for the python file (and an older one for the inx one if you didn't update it).

frank (notolose) said : #7


I past in the terminal: # ls -l /usr/share/inkscape/extensions/gimp_xcf.*
It doesn't return anything. There's something wrong...

thx for the reply

frank (notolose) said : #8

could you guys tell me the code to make the directory "/usr/share/inkscape/extensions/" writable so I can change the file manually?

frank (notolose) said : #9

Please guys, any help?

jazzynico (jazzynico) said : #10

Hi Frank,

When I write to type # something, the "#" stands for the command prompt and should not be entered in the command line. Could you please retry "sudo cp ~/ /usr/share/inkscape/extensions/" (with no # and, uh, no quotes ;).
Sorry, it's my fault, I was not clear enough.


frank (notolose-googlemail) said : #11

File overwriting solved. Thx for your help.

The problem with the xcf export still persist anyway. I am gonna open a post dedicated to this new problem.


Can you help with this problem?

Provide an answer of your own, or ask frank for more information if necessary.

To post a message you must log in.