[Gambas-user] Relaunching a program as root

Kende Krisztián nemh at ...2007...
Mon Dec 30 04:20:00 CET 2013


2013-12-30 03:20 keltezéssel, Kende Krisztián írta:
>
> Jeez, that's complicated code!
>
> I wrote my own version, this is perhaps a little simpler. Check it. ;-)
>
> Otherwise. Your code:
>
> IIf(Application.Path Ends ".gambas", "/usr/bin/gbr3 ", "/usr/bin/gbx3 
> ") & Application.Path
>
> isn't correct, because Application.Path is a directory, not file.
>
> And a little bug. If I use sudo method and I write good password, then 
> opened two window; root and error message (good with su method).
>
>
> Kendek
>
>

And I forgot Xauthority file. :-(
But now is good.

Kendek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: relaunchbykendek.tar.gz
Type: application/gzip
Size: 6304 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20131230/6768af97/attachment.gz>


More information about the User mailing list