gksu-polkit does not allow arguments with launched executable
I am running Slackware 14 64 Bit.
I am writing a python program to launch and monitor dnscrypt-proxy I am trying to use gksu-polkit to launch dnscrypt-proxy with arguments e.g. gksu-polkit /usr/local/sbin/dnscrypt-proxy -d -u user -l /var/log/dnscrypt However whenever I try to use arguments from bash prompt I get the following: gksu-polkit /usr/local/sbin/dnscrypt-proxy -d -u user -l /var/log/dnscrypt Code:
** (gksu-polkit:10372): WARNING **: Unknown option -d Code:
Failed to run /usr/local/sbin/dnscrypt-proxy -d -u username -l /var/log/dnscrypt |
The program "gksu-polkit" is not part of Slackware. Where did you obtain it? Are you running Slackware or one of its derivatives?
Eric |
Hi, I'm running:
NAME=Slackware VERSION="14.0" I pulled gksu-polkit down with sbopkg. gksu-polkit-20100909_d7e3160-x86_64-1_SBo polkit-0.105-x86_64-3 polkit-gnome-0.102-x86_64-1 polkit-qt-1-0.103.0-x86_64-1 I remember something like gksu is not included in the Slackware (maybe I just didn't check?!), I'm going to have to go back and see why I came to be using this. I guess I will find some way of supporting several methods of invoking dnscrypt-proxy as root. Thanks |
you can try creating a wrapper script with the content
Code:
/usr/local/sbin/dnscrypt-proxy -d -u user -l /var/log/dnscrypt or try with ktsuss (but it doesn't use polkit). but these programs (ktsuss and gksu-polkit) are often used to launch graphical apps that need to run as root under an user session. if you just need to launch a console application, maybe could be easier to just switch to root (with "su -") and launch it. |
ktsuss did the trick, thanks.
In terms of using su, dnscrypt-proxy is launched by a Python script which is running as the desktop user and has a GUI with notification icon, so I needed to grab the root password just to launch dnscrypt-proxy / alter /etc/resolv.conf. Dnscrypt-proxy actually does end up running as the desktop user, but needs to be launched initially as root Thanks for the help |
All times are GMT -5. The time now is 11:45 AM. |