otyugh <[email protected]> writes: > All I had to do was make a dummy "pkexec" package and replace its binary by > a one liner script doing "sudo $@" (or with doas but with a xhost option).
Sudo doesn't work if it prompts for a password and isn't attached to a terminal. > I feel like a good alt. solution for gparted would be to simply check for > pkexec and if it's not here, just go for login using doas or sudo (in a > console using "exo-open --launch TerminalEmulator" for instance). > > Another solution would be to warn "need to be run as root or install > pkexec" ? I'm not sure how to get the .desktop file to do such checking and prompting. If you can figure it out and provide a patch I'd be happy to apply it. The package used to use gksu to prompt for a pasword but that went away and I was told that PolKit was the cross desktop replacement that should work for everyone.

