BodhiThis forum is for the discussion of Bodhi Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It installed OK, and an entry appeared in the menu, but when I click on the menu entry I get an eSudo request window to enter my password, and then nothing. It just seems to stop.
I can run it from the terminal by typing sudo gparted and it seems to run just fine.
If it's only supposed to run from the terminal then there's no point having the menu entry, so I presume that it's supposed to run from the menu.
I'm using Bodhi Linux 5.0, legacy (32 bit) version.
Wow. You're right. This worked before, but gparted is not opening for me from menu anymore either, after entering password. weird. Yeah I also don't have .mount
I think, Ylee will answer more skilled than me but I have found a simple workaround
sudo nano /usr/share/applications/gparted.desktop
Change the exec entry this way:
Exec=pkexec /usr/sbin/gparted %f
Stefan
Explaining the behavior:
Policy kit is attaching the command line argument -disable-internal-agent to gparted but Bodhi's esudo is acting as the function pkexec and it does not accept the argument. Hence gparted fails to start as will any program using policy kit doing the same thing. I have been aware of the conflict between esudo and pkexec (as well as issues using it as a drop in substitute for gksudo) for some time. I have been somewhat reluctant to either alter the policy kit stuff ubuntu installs or to hack or alter esudo to work better with policy kit.
Workarounds:
Stefan's work around is fine and the easiest. But it has the downside that altering the desktop files of broken apps trying to use policy kit has to be done for every such app you install. Somewhat more difficult is to actually use pkexec as intended. I am not going into that here but that is what i do. It should be noted that efl has its own policy kit authentication agent, polkit-efl but I have never tried it. I suppose another way would be to alter esudo to ignore any and all pkexec command line arguments. Other workarounds such as altering or removing policy kit I am going to ignore as they are probably a bad idea unless you really know you are doing.
Notes:
I know none of this is ideal and i am open to ideas on how to fix this. I have suggested to Jeff we try not to break pkexec with esudo esp for users of Bodhi who also use other desktops, but he opted as he usually does for the simplest solution. Contact me personally if ya have any better ideas to avoid spamming this support thread Just be aware I have considered the pros and cons of a number of potential solutions and found none I truly felt comfortable with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.