Ask your questions here.
Post a reply

Re: Well I broke pkexec somehow, synaptic opens without a pa

Sun Sep 25, 2016 11:47 pm

Someone else with a similar problem:
http://forums.debian.net/viewtopic.php?f=10&t=129852

and another solution:
https://github.com/BunsenLabs/bunsen-co ... ostart#L40

Re: Well I broke pkexec somehow, synaptic opens without a pa

Tue Sep 27, 2016 9:08 am

in fig os im using sudo pcmanfm --desktop to provide a desktop, which does work live or frugal, but once youve installed (at least if sudo requires a pw, which it should) this of course wants gksu or something. well thats no fun.

so this is what im thinking about for running pcmanfm desktop (as root) while everything else in x runs as a normal user: (yes, its a bit shameful.)

Code:
#!/bin/bash
while [[ 1 ]]
    do p=$(ps aux | grep pcmanfm | grep desktop | wc -l)
    if [ "$p" -lt "1" ]
        then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) pcmanfm
        export DISPLAY=:0.0
        pcmanfm --desktop 2>  /dev/null &
        export XAUTHORITY=
        fi
    sleep 2
    done


this goes in a script and gets run from / etc / rc.local with & to keep it running. instead of killing pcmanfm you kill that script and then pcmanfm.

admittedly i think this is the opposite problem the op talks about: password requirement is not desirable in this case.

Re: Well I broke pkexec somehow, synaptic opens without a pa

Tue Sep 27, 2016 9:18 pm

It's got to be something I did, I found the first iso I rolled with snapshot last night and burned it to a cd, this was before I started hardcore stripping, I had just removed Libre, Gimp, replaced the browser, and added a few programs.

Installed it and it worked exactly as it should, no issues with pkexec.

So somewhere between there and where i'm at now, there must have been some small library or app that seemed like it wasn't doing anything, and didn't show up in dependency/dependants lists as being connected to anything, that must have played a small part in connecting pkexec properly.

Sure seems though, that the default behavior if it didn't find that tidbit, would be to error out, NOT assume root privileges and go ahead and open the programs.

I may go back and try some more, but for now I took fsmithred's advice and made extra .desktop files for gparted and synaptic, used gksu and set the others to not display. Rolled a new one this morning and gonna burn it here shortly, install, and test.

Was trying to keep it as close to the default settings and behavior in Devuan as possible, but if they are working on putting out some livecd images it may be silly of me keep trying to go that route, though I still think there is a lot of merit in a minimal iso.

A wasp stung me on the butt today. I am literally butthurt. :cry:
Post a reply