You are not logged in.

#1 2016-08-15 22:39:32

ulala
New Member
Registered: 2016-08-15
Posts: 1

gmrun sudo error

Hey guys,

I have a problem while running applications through the "Run Program" in the menu. If I run, for instance, geany normally I don't get any error. But if i try to run it with sudo I get a terminator windows saying "unable to find a shell". This started to happen after I installed the "dist-upgrade".

I tried searching a solution but came back empty. Hope that you can help since I don't know much about linux.

Offline

#2 2016-08-15 22:46:55

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: gmrun sudo error

Does this happen to every program or specific ones?

Generally you don't really need to do dist-upgrade, did you update your packages before with

sudo apt-get install update

If not, try that, and perhaps do:

sudo apt-get install upgrade

Also can you switch to a different TTY (ctl + alt + f2)  and try to run a command as sudo from there?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#3 2016-08-15 22:53:13

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: gmrun sudo error

For starting gui applications as root in the Run dialog you should use

gksudo geany

...or you may get the error you have described.

'sudo geany' should work if typed in a terminal.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#4 2016-08-16 02:39:00

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,668
Website

Re: gmrun sudo error

To expand on damo's answer, to run a command as root using sudo or gksu you have to enter your password. That's possible on a terminal so 'sudo command' works, but with the "Run Program"  menu item, gmrun has no mechanism for entering a password. gksu opens the necessary password box.

btw, strictly speaking, 'gksu command' is preferred to 'sudo command' even in a terminal when running GTK applications (ie apps that open their own window), although in most cases sudo works.

...and welcome to the BunsenLabs forum!

Last edited by johnraff (2016-08-16 02:39:45)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#5 2016-08-16 06:15:42

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: gmrun sudo error

ulala wrote:

I have a problem while running applications through the "Run Program" in the menu. If I run, for instance, geany normally I don't get any error. But if i try to run it with sudo I get a terminator windows saying "unable to find a shell". This started to happen after I installed the "dist-upgrade".

what happens when you just open a terminator terminal? you should be getting the same error.

also, dist-upgrade isn't something you install.
which exact commands did you use?
did you complete the welcome script after installation?

Offline

#6 2016-08-16 07:35:43

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: gmrun sudo error

I think the recommendation is to use:

pkexec geany

rather than the obsoleted `gksudo`/`gksu`

Offline

#7 2016-08-16 08:21:50

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,668
Website

Re: gmrun sudo error

(Apologies to ulala.)

[OFF-TOPIC]We had a little discussion about this in early 2015: http://crunchbang.org/forums/viewtopic. … 51#p420851
Maybe time to take pkexec more seriously?[/OFF-TOPIC]

Last edited by johnraff (2016-08-16 08:23:06)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB