> If I remember correctly, you can even save more work by using gb.desktop, > Desktop.RunAsRoot() which > builds on top of the portland xdg scripts. >
Before writing anything I should always check what gb.desktop contains... But there seems to be bugs. I tried 'Desktop.RunAsRoot("whoami")'. All I got is: " xdg-su: no graphical method available for invoking 'whoami' as 'root'" I have gksudo installed ( in /usr/bin/gksudo ) and working. So perhaps Gambas ships broken version of this script..? Also "xdg-screensaver activate" doesn't work (Desktop.ScreenSaver.Activate). Either the version of that script already installed to my system (xdg-su wasn't installed at all). Xubuntu 12.04 64 bit. Screensaver in use is XScreenSaver 5.15, and GKsu is version 2.0.2. Jussi ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user