...la discussione continua......
« NOT on the Fedora 17 - LXDE 0.5.12 - Gambas 3.4.0 when run from
executable. Same error again
Screen01.png -> Running executable with error message
Screen02.png -> changed code using Exec [System.Shell .....]
Somehow it is impossible to use sudo on the Fedora box from Gambas
executable.
Although all works when done directly in terminal by hand or when done
from Gambas 3 app run in IDE. The Gambas 3 executables just refuse to
work...
On my Linux Mint 13 all works just fine.
--
Kind regards,
Willy (aka gbWilly) »
« Sorry, but you must use "For Input Output", not "For Read Write".
--
Benoît Minisini »
« Well I used Read Write because when replacing Read Write with Input
Output the application does nothing but keep the system busy!!
Source Archive attached (made by Tobias, adapted by me)
--
Kind regards,
Willy (aka gbWilly) »
« The not doing anything mentioned above is only when run from IDE on
Fedora. On other distro's no problem at all when running from IDE
I can confirm that the:
Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output
now works on Fedora from executable.
So now I'll implement this manner of executing a Shell in my application
and see if all works there as well
Tobi, Benoît, Thanks...
--
Kind regards,
Willy (aka gbWilly) »