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

Tony Morehen tmorehen at ...3602...
Fri Aug 5 23:07:02 CEST 2016


Try adding the full path to chmod or cat.


On 8/5/2016 5:00 PM, bugtracker at ...3416... wrote:
> http://gambaswiki.org/bugtracker/edit?object=BUG.973&from=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 Sub Button1_Click()
>
>    Desktop.RunAsRoot("cat /dev/input/mouse0")
>
> End
>
>
> I get that error message:
> "File or directory doesen't exist."
>
> vuott VUOTT changed the state of the bug to: Opened.
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list