You are not logged in.
Seems that the start up applications can be shown and deleted, but can't add any new ones via the Gnome Tweak Tool in Gnome 3.12. Happening on both my desktop and laptop. Anyone else having the same prob? I went looking for an autostart file to see if I can just manually amend it, but don't see that anymore.
Last edited by transcendev (2014-04-24 23:36:18)
Offline
Offline
Thanks!
Offline
Thanks!
May I know how you solved this problem? Thanks.
Offline
I noticed this a couple of weeks ago. Oddly enough, if I start gnome-tweak-tool from the terminal I'm able to add new autostart applications.
Offline
For me opening tweak tool from terminal doesn't work. I see a couple of times this error, which interestingly happens with the tweak_group_startup functions definitions:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py", line 194, in _on_add_clicked
set(self._get_running_executables()))
File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py", line 210, in _get_running_executables
os.getlogin(),'-o','cmd'],
OSError: [Errno 2] No such file or directory
The only working workaround so far is to add a *.desktop file in ~/.config/autostart/ as proposed in the thread bnb2235 linked.
Offline
For me opening tweak tool from terminal doesn't work. I see a couple of times this error, which interestingly happens with the tweak_group_startup functions definitions:
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py", line 194, in _on_add_clicked set(self._get_running_executables())) File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py", line 210, in _get_running_executables os.getlogin(),'-o','cmd'], OSError: [Errno 2] No such file or directory
The only working workaround so far is to add a *.desktop file in ~/.config/autostart/ as proposed in the thread bnb2235 linked.
I see those errors in journalctl when trying to add a startup program after opening up the tweak-tool from the menu including something about "inappropriate ioctl error". Not sure what that's about.
Offline
For me opening tweak tool from terminal doesn't work. I see a couple of times this error, which interestingly happens with the tweak_group_startup functions definitions:
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py", line 194, in _on_add_clicked set(self._get_running_executables())) File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py", line 210, in _get_running_executables os.getlogin(),'-o','cmd'], OSError: [Errno 2] No such file or directory
The only working workaround so far is to add a *.desktop file in ~/.config/autostart/ as proposed in the thread bnb2235 linked.
I also had this error message but adding a .desktop file didn't help for some reason. Obviously there is some problem with os.getlogin (I don't know why though), so this can be solved by modifying /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py in the following way:
$ diff -Naur /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py ./tweak_group_startup_fixed.py
--- /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py 2014-03-29 20:03:49.000000000 +0400
+++ ./tweak_group_startup_fixed.py 2014-05-11 21:44:54.225244734 +0400
@@ -17,6 +17,7 @@
from __future__ import print_function
import os.path
+import getpass
import subprocess
import logging
@@ -207,7 +208,7 @@
exes = []
cmd = subprocess.Popen([
'ps','-e','-w','-w','-U',
- os.getlogin(),'-o','cmd'],
+ getpass.getuser(),'-o','cmd'],
stdout=subprocess.PIPE)
out = cmd.communicate()[0]
for l in out.split('\n'):
Last edited by alias-meine (2014-05-11 17:54:25)
Offline
This fixed the issue for me too. Thanks!
Has this already been submitted to the package maintainer?
Offline
karamaz0v wrote:For me opening tweak tool from terminal doesn't work. I see a couple of times this error, which interestingly happens with the tweak_group_startup functions definitions:
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py", line 194, in _on_add_clicked set(self._get_running_executables())) File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py", line 210, in _get_running_executables os.getlogin(),'-o','cmd'], OSError: [Errno 2] No such file or directory
The only working workaround so far is to add a *.desktop file in ~/.config/autostart/ as proposed in the thread bnb2235 linked.
I also had this error message but adding a .desktop file didn't help for some reason. Obviously there is some problem with os.getlogin (I don't know why though), so this can be solved by modifying /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py in the following way:
$ diff -Naur /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py ./tweak_group_startup_fixed.py --- /usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_startup.py 2014-03-29 20:03:49.000000000 +0400 +++ ./tweak_group_startup_fixed.py 2014-05-11 21:44:54.225244734 +0400 @@ -17,6 +17,7 @@ from __future__ import print_function import os.path +import getpass import subprocess import logging @@ -207,7 +208,7 @@ exes = [] cmd = subprocess.Popen([ 'ps','-e','-w','-w','-U', - os.getlogin(),'-o','cmd'], + getpass.getuser(),'-o','cmd'], stdout=subprocess.PIPE) out = cmd.communicate()[0] for l in out.split('\n'):
Works for me, many thanks!!
Offline