[Gambas-user] Test running app from IDE as root...
benoit.minisini at gambas-basic.org
Sun Jun 12 21:08:38 CEST 2022
Le 12/06/2022 à 18:37, Bruce Steers a écrit :
> On Sun, 12 Jun 2022 at 17:30, Bruce Steers <bsteers4 at gmail.com
> <mailto:bsteers4 at gmail.com>> wrote:
> What do you think of this?
> (main commit)
> (sanity check)
> I've added an option on the Debugging/Arguments page to Run As Root
> using pkexec.
> prefixes gbx with the same method Desktop.RunAsRoot() uses.
> Good idea? terrible idea?
> Seems to work
> PS. not 100% sure i have put the pkexec insertion in the best place in
> the code, line 1291 seemed right to me but there are other things i do
> not use like Test and valgrind so do not know of effects on these.
> All the best
If it's useful, it's a good idea. Then it depends if it is correctly
Running a project from the IDE now has many paths:
- Running in the IDE terminal or in an external terminal.
- Debugging an already running process.
- Debugging through ssh.
- Running through the embedded server.
- Running a project test suite.
For some of these paths, running with pkexec has sense, for the others
it does not.
Is your implementation correct?
More information about the User