You are not logged in.

#1 2014-04-02 19:54:42

qupfer
Member
Registered: 2014-04-02
Posts: 16

Trouble with gksu and gksudo in Cinnamon environment

Hi,

I'm installed today Arch-Linux with Cinnamon-Desktop, mdm and gksu. (wih pacman and yaourt, no "manual" changes)

If I run 

 gksu nemo 

nothing happens. Okay, the monitor "blink*" one-time but nothing else.
If I run 

 gksudo nemo 

, a root-nemo opens. (normally, sometimes also nothing happens)

The same behavior have I with other applications like gnome-terminal, xterm....

If I run 

 gksu nemo 

from a non-root gnome-terminal, the cursor is blinking for ~ 5 seconds in the next line, then the shell is waiting for a new command.

Can somebody help me to find the reason for this behavior?

And I'm sorry for my english and the grammatical nonsense ;-)


*its a bit like  running a batch with no commands, so that the cmd-window closed immediately. But I'm not sure if realy a window is visible. If yes, its definitely less then one second.

Offline

#2 2014-04-03 05:17:59

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Trouble with gksu and gksudo in Cinnamon environment

You mention that other application suffer as well. You only mention terminal applications. Does it also happen with apps like text editors and browsers?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-04-03 07:23:41

qupfer
Member
Registered: 2014-04-02
Posts: 16

Re: Trouble with gksu and gksudo in Cinnamon environment

Thank you for your response.
Yes, it's the same with other programs.

gksu gedit
gksu nemo
gksu chromium

do all nothing.


gksudo gedit
gksudo nemo
gksudo chromium 

opens gedit or nemo with root-access and chromiun gives me a error massesge, that it can't be run as root as long no user-data-dir is specified. So yes, its working too wink

I find this interesing, because gksudo and gksu are the same tools, right?

[henning@x201t-arch ~]$ ls -la /usr/bin/ | grep gksu
-rwxr-xr-x 1 root root    28104 28. Nov 2011  gksu
lrwxrwxrwx 1 root root        4 28. Nov 2011  gksudo -> gksu
-rwxr-xr-x 1 root root    14736  5. Jun 2012  gksu-properties

Edit: Could this problem be related to the "not-using" of gnome-keyring? I mean "gksu" gives me the option to safe the password, gksudo doesn't. But gnome-keyring (and seahorse) are installed.


Edit: okay, it's official. I'm stupid^^
gksu-properties was set to use "su", so the password was wrong....but also get a "new" problem.

With nemo, xterm, gedit I havn't any trouble anymore. But "gksu gnome-terminal" is still not working in the "su" mode. Of course, using sudo-mode is a working alternative, but I'm interessted why it doen't work in su-mode

Last edited by qupfer (2014-04-03 07:47:56)

Offline

#4 2014-04-03 08:19:19

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Trouble with gksu and gksudo in Cinnamon environment

If an executable is called through a symlink, it can behave differently based on the name of that symlink.

Running gksu will activate different routines than running gksu through the gksudo symlink.

Do you have sane /dev/pts settings? Any terminal output?

EDIT: Maybe check inheritance of environment variables? <------

Last edited by Rexilion (2014-04-03 08:19:50)


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

Board footer

Powered by FluxBB