[Gambas-user] EXEC ... WITH

Bruce Steers bsteers4 at gmail.com
Mon Jul 19 01:05:20 CEST 2021

Also check out this other application I made...

It edits the pkexec policies.
I assume you know you need to add gbr3 (and possibly another launcher
binary) to pkexec policy list so gambas applications work. I assume because
it works in cli

Best of luck.

On Sun, 18 Jul 2021, 23:08 , <jose.rodriguez at cenpalab.cu> wrote:

> This works in cli:
> /home/joe1962/0-develop/MyDev/vcpufreq/trunk/vcpufreq-gui/vcpufreq-gui.gambas
> However, none of the following attempts have worked in Gambas code:
> Application.Path &/ "vcpufreq-gui.gambas"] Wait
> Exec ["pkexec", Application.Path &/ "vcpufreq-gui.gambas"] With
> This is for some old code I had and am updating to current Gambas. The
> problem actually came about because the code tested for kdesu, ktsuss, gksu
> and would relaunch itself as root, then quit. However, on Linux Mint you're
> supposed to use pkexec now...
> The error is the typical one when trying to run a gui program in a root
> console:
> qt.qpa.xcb: could not connect to display
> qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even
> though it was found.
> This application failed to start because no Qt platform plugin could be
> initialized. Reinstalling the application may fix this problem.
> Available platform plugins are: eglfs, linuxfb, minimal, minimalegl,
> offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl,
> wayland-xcomposite-glx, xcb.
> Appreciate any ideas.
> Regards,
> Joe1962
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210719/2f36db3d/attachment-0001.htm>

More information about the User mailing list