Wallpaper cannot be changed when XRandR monitor names contain spaces
Environment
- Distribution: Kali Linux Rolling
- Xfce version: 4.20
- xfdesktop version: 4.20.2-2
- Display server: X11
- Remote desktop software: Jump Desktop
Description
When using Jump Desktop, changing the wallpaper through xfdesktop-settings does not update the desktop background.
Wallpaper thumbnails are displayed correctly, and selecting an image updates the Xfconf properties, but the actual desktop background remains unchanged.
Steps to reproduce
- Connect to an Xfce desktop using Jump Desktop.
- Open Desktop Settings.
- Select a different wallpaper.
- Observe that the desktop background does not change.
Diagnostic information
Running:
xrandr --listmonitorsReturns:
Monitors: 16
0: Jump Display 1 1680/444x1050/278+0+0 DUMMY0
1: Jump Display 2 0/0x0/0+0+0 DUMMY1
2: Jump Display 3 0/0x0/0+0+0 DUMMY2
...Monitoring Xfconf changes with:
xfconf-query -c xfce4-desktop -m -vShows that xfdesktop-settings writes to:
/backdrop/screen0/monitorJumpDisplay1/workspace0/last-image
The logical monitor name contains spaces (Jump Display 1), while the configuration property uses a normalized name without spaces (JumpDisplay1).
Expected behavior
Changing the wallpaper should update the desktop background regardless of whether the XRandR monitor name contains spaces.
Actual behavior
The wallpaper configuration is updated, but the desktop background remains unchanged.
Confirmed workaround
Removing spaces from the XRandR logical monitor name and restarting xfdesktop resolves the issue.
xrandr --delmonitor "Jump Display 1" &&
xrandr --setmonitor JumpDisplay1 \
1680/444x1050/278+0+0 DUMMY0Restart xfdesktop:
xfdesktop --quit
sleep 2
nohup xfdesktop >/tmp/xfdesktop.log 2>&1 &After applying this workaround, wallpaper selection through Desktop Settings works correctly.
Suspected root cause
There appears to be inconsistent monitor name normalization between xfdesktop-settings and the backdrop manager.
Monitor names containing whitespace may result in different Xfconf property paths being used when saving and retrieving wallpaper settings.
Suggested fix
Ensure consistent monitor identifier normalization across the settings dialog and the backdrop manager.
Additional notes
The issue has been reproduced on xfdesktop 4.20.2.
The workaround has been tested successfully.
The exact root cause has not yet been confirmed through a source code patch, and whether the issue persists on the current development branch remains to be verified.