Crash when connecting external monitor after upgrade to 4.20.0
<!-- Please fill this template out in full. Issue reports that do not use this template, or that have missing relevant information may be closed without comment. --> # 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 https://gitlab.xfce.org/xfce/xfdesktop/-/commit/93b9abd3048be16c02692507615151d59ebe90f7#25c2cfcd64bce6d2d08a7325e1d07f4a1e28a09c added a differently named glade file - could this be the reason? For the time being, how can I work around this issue? <!-- More detail is better. Details that you think are unimportant may not be. --> # Steps to Reproduce Issue <!-- Clear, easy-to-follow reproduction steps are key to understanding and fixing the issue. --> 1. Start XFDesktop with an external screen connected # Expected Behavior <!-- Often it isn't clear: what did you expect to happen that didn't happen? --> No Crash :) # Additional Information <!-- Please list the values of any settings that may be relevant to the issue. Include any relevant logs our console output. If this is a build problem, paste your build output, including all commands you used to run the build. If a screenshot or screencast video may be helpful, attach it here. --> 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 <!-- If you are running a stable release, please try to test with the latest stable version. If you are running a dev release, it is very important that you test with the current state of git master. --> * 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.
issue