[Gambas-user] EXEC ... WITH
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:
> pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY
> However, none of the following attempts have worked in Gambas code:
> Exec ["pkexec", "env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY " &
> Application.Path &/ "vcpufreq-gui.gambas"] Wait
> Exec ["pkexec", Application.Path &/ "vcpufreq-gui.gambas"] With
> ["DISPLAY=$DISPLAY", "XAUTHORITY=$XAUTHORITY"] Wait
> 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
> 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.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User