Crash when connecting external monitor after upgrade to 4.20.0
Issue Description
After upgrading to 4.20.0, xfdesktop sometimes (often?) crashes when attaching an external screen OR when external screen are connected during startup. When starting xfdesktop in a terminal, the following is reported:
(xfdesktop:7755): Gtk-ERROR **: 14:02:53.757: failed to add UI: The resource at “/org/xfce/xfdesktop/monitor-candidates-chooser.glade” does not exist
I went through the code and indeed it looks for this file at https://gitlab.xfce.org/xfce/xfdesktop/-/blob/master/src/xfdesktop-file-icon-manager.c?ref_type=heads#L1448. The relevant commit at 93b9abd3 added a differently named glade file - could this be the reason?
For the time being, how can I work around this issue?
Steps to Reproduce Issue
- Start XFDesktop with an external screen connected
Expected Behavior
No Crash :)
Additional Information
I had a closer look at the code and how to work around it: If I remove the file ~/.config/xfce4/desktop/icons.screen0.yaml the Desktop works again. It adds a previously not present monitor configuration to this file. If I copy the newly added monitor to my backed-up configuration file, the Desktop is also working fine. So at least I have a workaround for the time being!
Environment & Versions
- OS distribution and version: Arch Linux, updated 2025/01/10
- Overall Xfce version: 4.20.0
- xfdesktop version (git hash if not a release): 4.20.0 (4.20.0-7 Arch Linux Package)
- Windowing system (X11/Wayland): X11
- Compositor and version (if Wayland):
- GTK Theme: Arc-Darker
- Icon Theme: Arc
- UI Scale Factor: None specifically set, I think.