You are not logged in.

#1 2014-04-24 02:07:20

transcendev
Member
From: Chicago, IL
Registered: 2014-04-24
Posts: 12
Website

[SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

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

#2 2014-04-24 09:43:13

bnb2235
Member
Registered: 2011-02-13
Posts: 105

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

Offline

#3 2014-04-24 23:34:48

transcendev
Member
From: Chicago, IL
Registered: 2014-04-24
Posts: 12
Website

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

Thanks!

Offline

#4 2014-05-06 13:07:15

acrox999
Member
From: /dev/null
Registered: 2011-10-30
Posts: 6

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

transcendev wrote:

Thanks!

May I know how you solved this problem? Thanks.

Offline

#5 2014-05-06 14:05:25

cris9288
Member
Registered: 2013-01-07
Posts: 346

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

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

#6 2014-05-07 20:09:26

karamaz0v
Member
From: Argentina
Registered: 2012-07-18
Posts: 8

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

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

#7 2014-05-07 21:45:00

cris9288
Member
Registered: 2013-01-07
Posts: 346

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

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 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

#8 2014-05-11 17:53:34

alias-meine
Member
Registered: 2014-05-11
Posts: 1

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

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'):

Last edited by alias-meine (2014-05-11 17:54:25)

Offline

#9 2014-05-22 01:06:08

benjamin
Member
Registered: 2013-10-15
Posts: 13

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

This fixed the issue for me too. Thanks!

Has this already been submitted to the package maintainer?

Offline

#10 2014-08-05 14:09:39

farseer2012
Member
Registered: 2013-11-14
Posts: 7
Website

Re: [SOLVED] Startup Apps in Gnome 3.12 can't add using Gnome Tweak

alias-meine wrote:
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

Board footer

Powered by FluxBB