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

Cannot run graphical applications as super user on Wayland #199

Open
polkit-github-migration-bot opened this issue Jul 27, 2023 · 0 comments

Comments

@polkit-github-migration-bot
Copy link
Collaborator

In gitlab.freedesktop.org by Lassebq on Jul 27, 2023, 12:43

Link to the original issue: https://gitlab.freedesktop.org/polkit/polkit/-/issues/198

Current behaviour, description of the problem

Graphical applications cannot start on Wayland when using pkexec

Desired behaviour

Executing such applications with sudo -E does make them work. So I assume the solution here is for pkexec to keep environment variables.

Reproducer

$ pkexec nemo
Authorization required, but no authorization protocol specified

Could not parse arguments: Cannot open display: 
$ pkexec gparted
Authorization required, but no authorization protocol specified


(gpartedbin:40068): Gtk-WARNING **: 13:32:59.785: cannot open display: :1

Detailed description

pkexec version 122

Arch Linux 6.4.4-arch1-1

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

No branches or pull requests

1 participant