You are not logged in.

#1 2007-12-09 11:35:05

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

[solved] pygtk apps using the wrong .config directory

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

#2 2007-12-09 11:50:07

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: [solved] pygtk apps using the wrong .config directory

you might wanna use `login` instead of `su`

Offline

#3 2007-12-09 17:14:17

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: [solved] pygtk apps using the wrong .config directory

Uhm, why are you ever logging in as root?


I am a gated community.

Offline

#4 2007-12-10 13:56:37

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [solved] pygtk apps using the wrong .config directory

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

Board footer

Powered by FluxBB