FS#70670 - [polkit-gnome] 0.105-6 crashes under Wayland
Attached to Project:
Community Packages
Opened by kinodont (kinodont) - Saturday, 01 May 2021, 10:50 GMT
Last edited by Balló György (City-busz) - Saturday, 01 May 2021, 18:54 GMT
Opened by kinodont (kinodont) - Saturday, 01 May 2021, 10:50 GMT
Last edited by Balló György (City-busz) - Saturday, 01 May 2021, 18:54 GMT
|
Details
Description:
Patch "Use fresh X11 timestamps when displaying authentication dialog" is using gdk_x11_get_server_time without any fallback for Wayland. Steps to reproduce: 1. start a Wayland compositor (e.g. Weston) $ weston 2. register the authentication agent $ /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & 3. use the agent, e.g.: $ pkexec bash 4. crash (segfault) I've attached a patch with a possible fix. |
This task depends upon
Closed by Balló György (City-busz)
Saturday, 01 May 2021, 18:54 GMT
Reason for closing: Fixed
Additional comments about closing: polkit-gnome 0.105-8
Saturday, 01 May 2021, 18:54 GMT
Reason for closing: Fixed
Additional comments about closing: polkit-gnome 0.105-8
However, there was an issue in Cinnamon fallback mode (metacity --replace & gnome-panel --replace &) where the dialog was focused only after the first `pkexec bash`, subsequent dialogs were always unfocused (the terminal kept the focus). This was not the case with polkit-gnome 0.105-6. It seems the patch that circumvents focus-stealing prevention was effectively reverted in polkit-gnome 0.105-7.
I modified the patch based on your proposal. Please test polkit-gnome 0.105-8 from [community-testing]. I hope that it works properly now both for Metacity and Wayland.