pkexec fails to launch apps as root

Questions about software.
User avatar
Arjen Balfoort
Site Admin
Posts: 9330
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: pkexec fails to launch apps as root

Postby Arjen Balfoort » 28 May 2019 19:22

I could fix mousepad with:

Code: Select all

sudo cp /usr/share/polkit-1/actions/org.xfce.thunar.policy /usr/share/polkit-1/actions/com.solydxk.pkexec.mousepad.policy
sudo sed -i 's/thunar/mousepad/g' /usr/share/polkit-1/actions/com.solydxk.pkexec.mousepad.policy
sudo sed -i 's/Thunar/Mousepad/g' /usr/share/polkit-1/actions/com.solydxk.pkexec.mousepad.policy
I could provide the file with solydx-system-adjustments-10, alright?


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2180
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: pkexec fails to launch apps as root

Postby grizzler » 28 May 2019 20:14

Looks like that would work, yes.

Curious that mousepad doesn't have a polkit file of its own. Thunar has a context menu entry "open editor as root", so I would have expected some mechanism to handle that. I don't use thunar or mousepad, so I have never come across these issues and simply assumed it 'just worked'... :(
Frank

SolydX EE 64 - tracking Debian Testing

dclement
Posts: 41
Joined: 14 Mar 2013 10:34
Location: France

Re: pkexec fails to launch apps as root

Postby dclement » 29 May 2019 09:15

Just FYI, either on the PC at work (just updated straight from solydxk-system 3.3.0 to 3.3.5) or on my 2nd home laptop...
Arjen Balfoort wrote:
28 May 2019 18:29
Reverting back and I get these problems in SolydX 10:

gedibi doesn't work from within Thunar.
... I don't have any error with gdebi, either standalone or from Thunar (or even from Caja for good measure)!?
However,
Mousepad

Code: Select all

$ pkexec mousepad
Unable to init server: Could not connect: Connection refused

(mousepad:2782): Mousepad-ERROR **: 18:27:47.836: Cannot open display: 
Trace/breakpoint trap
I do get the second part of the error, but not the first one ("connection refused").

User avatar
Arjen Balfoort
Site Admin
Posts: 9330
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: pkexec fails to launch apps as root

Postby Arjen Balfoort » 29 May 2019 13:46

I updated gdebi to fix launching from thunar yesterday evening.

I've also updated solydx-system-adjustments-10 to address mouspad not having a policy file. This should solve your issue with mousepad.


SolydXK needs you!
Development | Testing | Translations


Return to “Software”

Who is online

Users browsing this forum: No registered users and 5 guests