mate-desktop / mate-polkit

Authentication Agent for PolicyKit and MATE
https://mate-desktop.org
Other
14 stars 14 forks source link

Fix segfault from gdk_x11_get_server_time if not on X11 #63

Closed the-blank-x closed 3 years ago

the-blank-x commented 3 years ago

This commit will call gtk_window_present_with_time (along with gdk_x11_get_server_time) if on X11, or just gtk_window_present if not to prevent a segmentation fault from occuring

raveit65 commented 3 years ago

How can this be tested? Wayland?

the-blank-x commented 3 years ago

Yeah run it on Wayland

raveit65 commented 3 years ago

Beside from code-style issues /usr/libexec/polkit-mate-authentication-agent-1 runs fine under Mate wayfire session. Tested with mate-user-admin and firewalld.