[Gambas-user] sudo or gksudo in SHELL?

Maximillian Von Kloisterheim maximvonk at ...626...
Sun Feb 24 02:10:12 CET 2008


Stefano Palmeri wrote:
> 
> Also, you could do :
> 
> IF User.Name <> "root" THEN
>    SHELL "gksudo " & Application.Args[0] WAIT 
>    QUIT 
> ENDIF
> 
> but this works after the project was compiled as executable. 
> 
> Stefano

Thanks Stefano. It looks like I might have to write the program, compile 
it, and then run it with gksudo to make things work.

Regards

Max




More information about the User mailing list