[Gambas-user] Test running app from IDE as root...
Brian G
brian at westwoodsvcs.com
Sun Jun 12 22:11:31 CEST 2022
If we can debug a running task already, can we not jus sudo the app then debug it?
--
Thanks
Brian G Sunday, 12 June 2022, 09:39AM -07:00 from Bruce Steers bsteers4 at gmail.com :
>
>
>On Sun, 12 Jun 2022 at 17:30, Bruce Steers < bsteers4 at gmail.com> wrote:
>>What do you think of this?
>>https://gitlab.com/bsteers4/gambas/-/commit/242afc06b7c791c3280d5c09112797a81c85243a (main commit)
>>https://gitlab.com/bsteers4/gambas/-/commit/ef3939d39cc8666cd6e8fe48608c4b5ffde53b73 (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
>>
>>Respects
>>Bruce
>
>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
>BruceS
>
>
>----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220612/063757fa/attachment-0001.htm>
More information about the User
mailing list