GNOME Bugzilla – Bug 728231
Can't add startup application, "+" button doesn't respond.
Last modified: 2015-02-23 11:01:54 UTC
When launching gnome-tweak-tool either from Activities or from Guake terminal, it returns the following error: Traceback (most recent call last):
+ Trace 233470
set(self._get_running_executables()))
os.getlogin(),'-o','cmd'],
However, if called from gnome-terminal it seems OK. os.getlogin() - doesn't return expected value when called from anywhere outside gnome-terminal. Running on latest Arch with all packages updated to recent versions. As of 15 April, 2014.
This is happening on my system as well. Archlinux All updates current as of 4/18/14 From GUI, + button doesn't bring up the add dialog. Same error reported from guake that the OP posted. Starting the application from Gnome-terminal works as advertised.
I can confirm this bug as well. Same workaround as mentioned above works.
os.getlogin() is just the wrong command there I think. A fix was posted in the Arch forum (https://bbs.archlinux.org/viewtopic.php?pid=1414443#p1414443). Using getpass.getuser() or pwd.getpwuid(os.getuid())[0] fixes the problem.
screenscraping ps like that looks just altogether wrong to me. I would just remove that code - the 'running' hint is not that important.
*** Bug 736835 has been marked as a duplicate of this bug. ***
Created attachment 286818 [details] [review] startup: Fix check for running executables os.getlogin() doesn't work if there's no controlling tty. In fact we don't need the username here since ps -U accepts UIDs just fine. -- I agree with Matthias, but anyway, I don't want to change the UI at this point before 3.14 and this is easy to fix so
The patch work just fine for me, it fixed the bug. thanks!
Attachment 286818 [details] pushed as 8fc9474 - startup: Fix check for running executables
*** Bug 737695 has been marked as a duplicate of this bug. ***
*** Bug 744985 has been marked as a duplicate of this bug. ***