LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 10-24-2018, 08:46 AM   #1
bobl01
Member
 
Registered: Oct 2018
Posts: 47

Rep: Reputation: Disabled
gParted will only run in terminal


Hi all

I installed gParted from this link: https://www.bodhilinux.com/a/gparted/

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.

Any ideas?

Bob
 
Old 10-24-2018, 10:09 AM   #2
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi
Posts: 75

Rep: Reputation: 12
mine does the same. i had been meaning to ask the same question
 
Old 10-24-2018, 10:21 AM   #3
bobl01
Member
 
Registered: Oct 2018
Posts: 47

Original Poster
Rep: Reputation: Disabled
It's beginning to look like my role here is ask those questions that others had meant to ask, but never got around to... (grin)
 
1 members found this post helpful.
Old 10-24-2018, 12:02 PM   #4
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 148

Rep: Reputation: Disabled
I know this one! You have to reinstall esudo. This affected synaptic too.

Code:
sudo apt install --reinstall esudo

Last edited by enigma9o7; 10-24-2018 at 12:05 PM.
 
2 members found this post helpful.
Old 10-24-2018, 12:52 PM   #5
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi
Posts: 75

Rep: Reputation: 12
unfortunately that didn't work on mine, but thank you for the suggestion
 
Old 10-24-2018, 12:56 PM   #6
bobl01
Member
 
Registered: Oct 2018
Posts: 47

Original Poster
Rep: Reputation: Disabled
Nor on mine, either.

I don't know if it's relevant but when I start from the terminal, it also says:

Unit - .mount does not exist, proceeding anyway

libparted : 3.2
 
1 members found this post helpful.
Old 10-24-2018, 01:04 PM   #7
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi
Posts: 75

Rep: Reputation: 12
i get that same message. just tried a simple volume label change and it worked, so i am pretty sure gparted is at least working from the terminal.
 
Old 10-24-2018, 01:30 PM   #8
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 148

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 10-24-2018, 01:53 PM   #9
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
hmm, interesting.

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
 
2 members found this post helpful.
Old 10-24-2018, 02:03 PM   #10
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi
Posts: 75

Rep: Reputation: 12
Quote:
Originally Posted by the_waiter View Post
I think, Ylee will answer more skilled than me
skill is as skill does, that fixed mine
 
Old 10-24-2018, 02:19 PM   #11
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi
Posts: 75

Rep: Reputation: 12
using the same syntax also fixed the problem for gsmartcontrol. thanks doubled!
 
Old 10-24-2018, 02:20 PM   #12
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
cool
 
1 members found this post helpful.
Old 10-24-2018, 04:28 PM   #13
bobl01
Member
 
Registered: Oct 2018
Posts: 47

Original Poster
Rep: Reputation: Disabled
Thanks Stefan. This sorted it out for me, too. Furthermore, it answered another question I was thinking about asking...
 
Old 10-24-2018, 05:50 PM   #14
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi
Posts: 75

Rep: Reputation: 12
Quote:
Originally Posted by bobl01 View Post
It's beginning to look like my role here is ask those questions that others had meant to ask, but never got around to... (grin)
ask all of the questions! seriously though, thanks for bringing this up.
 
Old 10-25-2018, 04:44 PM   #15
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 30

Rep: Reputation: 29
Quote:
Originally Posted by the_waiter View Post
hmm, interesting.

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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running JMRI/Decoder Pro - Run in Terminal - Terminal flashes and dissappears. HarrisCreekCentral Linux - Newbie 3 08-22-2018 05:31 PM
[SOLVED] can't get gparted to run on CD - my OS is Slackware 14.2, kernel 4.4, KDE wdarledge Linux - Software 17 11-24-2017 04:53 PM
How to run 'GParted Live' directly from the hard drive. gordont8 Linux - Software 6 01-18-2015 06:33 PM
[SOLVED] Run commands inside a terminal opened from a terminal.... charlemagne-is-my-son Linux - Software 10 06-16-2014 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration