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
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
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
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.
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
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.
http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4-
Comment #3 by Mufeed ALI:
you mean for every command?
--
___
Gambas-user mailing list
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
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.
>
>
>
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
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
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
12 matches
Mail list logo