You are not logged in.
This is a problem for me with sonata and deluge - both written in pygtk - so I imagine it applies to other pygtk apps as well. When I am logged in as root, I can only run the programs as root. Running them as connor with su or sudo causes this:
OSError: [Errno 13] Permission denied: '/root/.config'
They should be looking in /home/connor/.config not /root/.config. The only way I can get them to do this is by logging on explicitly as connor and then running them.
The shell script for deluge had a few lines of code referring to the CONFIG_DIR but it wasn't exactly clear from the comments how one changes it and the shell script for sonata just had something to do with dbus.
Does anyone know a fix for this? Even if I'm not logged on as root very much, I don't want to run these programs as root ever. Thanks.
Last edited by ConnorBehan (2007-12-10 13:58:23)
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
you might wanna use `login` instead of `su`
Offline
Uhm, why are you ever logging in as root?
I am a gated community.
Offline
everyone: the problem has magically seemed to correct itself.
kumico: yes login worked before but it's difficult to use that in scripts.
stonecrest: because sometimes I need to edit xorg.conf, the menu file (which i do by hand), lilo.conf, mpd.conf, and about 50 other things that require root all in the same day. Even then, I run all programs that deal with files downloaded from untrusted sources (image viewers, media players, etc) as a user. Frankly security isn't a huge priority for me since I don't keep secrets but I do keep backups. What is a far bigger risk is forgetting to lock my door while I go to the convenient store... but I still do it.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline