QtAutoUpdater icon indicating copy to clipboard operation
QtAutoUpdater copied to clipboard

In X11, use pkexec instead kdesu / gksu

Open ghost opened this issue 6 years ago • 2 comments

pkexec is a part of polkit, it's available on Linux / BSD. And it's default privileges authorize frontend.

ghost avatar Apr 02 '19 05:04 ghost

That sounds like a good idea. However, as I just tried this command out, it failed to start any Qt application with the following errors:

qt.qpa.xcb: could not connect to display 

After a little reseach, I found this post: https://askubuntu.com/questions/287845/how-to-configure-pkexec Apparently, we need to pass a few command line arguments to make it work. (And a quick test actually shows it working).

Do you know of any other pitfalls with pkexec that one should be aware of before using it here?

Skycoder42 avatar Apr 02 '19 08:04 Skycoder42

@Skycoder42 I am not sure about that, but I suggest you make the adminauthorization as a shared library.

ghost avatar Apr 03 '19 04:04 ghost