I looked your example just for interest. It doesn't seem to work with Ubuntu 10.04 64bit.
There are two issues, maybe something with my system... This is first time I used "*su*" (normally I use sudo) on this computer, and it doesn't work... *su -c 'whoami'* gives; *su: Authentication failure* However *sudo whoami* works correctly. Because of that, I replaced *su -c 'ls /root'* with *sudo whoami*. But there is another problem. Shell doesn't wait for input for *su* or *sudo *. Result is *sudo: 3 incorrect password attempts*, before even textbox appears. Tested with Gambas2 revision 3124. Jussi On Sat, Oct 2, 2010 at 15:22, Stefano Palmeri <[email protected]> wrote: > Il venerdì 1 ottobre 2010 21:27:39 IMP Technologies - Tajinder Singh ha > scritto: >> Hi all, >> >> I am new to Gambas but have done some projects in Visual Basic at college >> time. >> >> It is a good feeling to know about Gambas which I can use to create helpful >> applications on Linux platforms. >> >> I have created a small basic interface for Fedora to change Plymouth theme. >> But as changing theme requires to run some commands as root, I would like >> to ask for root password before starting the application. >> Similarly whenever we run 'system-config-boot' or other software that >> requires root privileges. >> >> Please help me with detailed guidance as how I can achieve the result. >> >> >> Thanks & Regards, > > Hi. > > I've attached a little example. It's just an interface to su. You don't > need kdesu or gksu. The code is real simple. It asks for root password > to execute 'su -c ls /root'. Take a look. > > Bye, > > Stefano > > > > > >> >> Tajinder Singh >> MD & CEO >> IMP Technologies >> [Affordable :: Quality :: Satisfaction] >> Mb. : +91-9814943801 >> Tel. : +91-161-2541944 >> E-mail : [email protected] >> Web : http://www.imptechs.com >> V-Card : http://www.imptechs.com/misc/IMPTechnologies_V-Card.jpg >> --------------------------------------------------------------------------- >>--- Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
