[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-13 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #11 by Mufeed ALI: Um.. Benoit? Did you also implement that SuApp thing I put in? Because it might come in handy for some. -- What NetFlow

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-13 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #9 by BenoƮt MINISINI: RunAsRoot() and OpenTerminal() problems should have been fixed in revision #7838. Mufeed ALI: RunAsRoot() has been implemented that way, but I rewrote the code correctly, using the gb.desktop internal

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-13 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #8 by Mufeed ALI: Correction: Public Sub RunAsRoot(Command As String, Optional SuApp As Integer) Dim sDE As String Command = System.Find("define") Shell "echo $XDG_CURRENT_DESKTOP" To sDE If SuApp = 1 Then Exec

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-06 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #6 by Bruce BRUEN: OK. Firstly, regarding the RunAsRoot() problem. This is not a gambas "bug" per-se. The problem is that the file "xdg-su" is missing from the xdg-utils directory in the gb.Desktop project directory (i.e.

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-06 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #5 by vuott VUOTT: > you mean for every command? Yes, for every command ! > Bug confirmed. I'ld like to point out more: if I use this command: Desktop.OpenTerminal() or Desktop.OpenTerminal("gnome-terminal") or

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-06 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #4 by Mufeed ALI: Ok i get it. Bug confirmed. Sorry for setting it as invalid. I'm working on a workaround for until when it gets fixed. I'll attach it as soon as possible.

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-06 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #3 by Mufeed ALI: you mean for every command? -- ___ Gambas-user mailing list

Re: [Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-05 Thread Ru Vuott
inal: not found " It seems for me so strange, because all worked before ! regards vuott Ven 5/8/16, Tony Morehen <tmore...@ajmconsulting.ca> ha scritto: Oggetto: Re: [Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file

Re: [Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-05 Thread Tony Morehen
Try adding the full path to chmod or cat. On 8/5/2016 5:00 PM, bugtrac...@gambaswiki.org wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- > > Comment #2 by vuott VUOTT: > >> Desktop.RunAsRoot requires the command to be written between the brackets. > Yes, I know it. > > >

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-05 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #2 by vuott VUOTT: > Desktop.RunAsRoot requires the command to be written between the brackets. Yes, I know it. If I try this: Public Sub Button1_Click() Desktop.RunAsRoot("chmod 666 /dev/tty1") End or e.g.: Public

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-05 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- Comment #1 by Mufeed ALI: Desktop.RunAsRoot requires the command to be written between the brackets. For example: Desktop.RunAsRoot("rm /var/crash/*") This can be used to clear crash logs in Ubuntu & some other distributions but

[Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-07-31 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- vuott VUOTT reported a new bug. Summary --- Desktop.RunAsRoot(): file or directory doesn't exist Type : Bug Priority : Medium Gambas version : 3.8.90 (TRUNK) Product : Unknown Description