Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In X11, use pkexec instead kdesu / gksu #22

Open
ghost opened this issue Apr 2, 2019 · 2 comments
Open

In X11, use pkexec instead kdesu / gksu #22

ghost opened this issue Apr 2, 2019 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented Apr 2, 2019

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

@Skycoder42 Skycoder42 self-assigned this Apr 2, 2019
@Skycoder42
Copy link
Owner

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?

@ghost
Copy link
Author

ghost commented Apr 3, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant