vmihalko / t2_polkit

Other
0 stars 0 forks source link

Cannot run graphical applications as super user on Wayland #202

Open vmihalko opened 1 year ago

vmihalko commented 1 year ago

In GitLab by @Lassebq on Jul 27, 2023, 12:43

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