Running graphical programs as root

gymka gymka at mail.ru
Sat May 5 11:45:19 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

2012.05.05 11:14, Neil Winchurst rašė:
> When I am using KDE, for example in kubuntu, and I want to run a 
> graphical program as root I use kdesudo as the command. Example
> kdesudo kate. If I ever used gnome, which I don't, I understand the
> command is gksudo.
> 
> What is the equivalent in Xfce please?
> 
> Thanks
> 

kdesudo, gksudo it's just frontends for "sudo". as far as i know only
difference between gksudo and sudo is that gksudo uses your(user's)
configuration and not root's. so create your own sudo frontend:
1. in /usr/bin create file "xfce-sudo" with content:
#!/bin/bash
pass=$(zenity --entry --text="Enter your pass");
echo $pass | sudo -S env HOME=$HOME $@

2. chmod a+x /usr/bin/xfce-sudo
3. now you have own frontend, usage:
xfce-sudo command

P.S. gksudo not works in xfce?


- -- 
gymka
GPG ID: 21C70548
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBAgAGBQJPpPavAAoJEAVeyH4hxwVIFw0IAKd9hG7ayFFsHHq1DycKNhE1
IRzGX/JmGdWkNHM2E4Orn97MCxcdIV0+Gi+QmaoYfIABIGE/Fp8RwEhqWivY4/Gn
d8zX547RgExtLF99l8vyWKgjbcm4w8JvPlNMPOLkGYcOrHhxjMX9/FDBLx/jBtEB
1/+JScKVfaD1RKUtKlyj9iM/BtRphfCIA+jAd9th9vvMuuYbMoeIH1nTyX0fww//
oI54OiiwWmdddZOy32Yp1wO3HDihgaDRlTXH/+soqPKaL7rEndZnSkaqZOGeTYdy
latM0hXcYTwlVUyI+PDRHUD8xvWBgWMffJb+CG708WrbvJK0r6iCd+U73PNJ9B8=
=Re58
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x21C70548.asc
Type: application/pgp-keys
Size: 3547 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20120505/1a13b0f4/attachment.key>


More information about the Xfce mailing list