! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfdesktop not reloading everything
Status:
RESOLVED: WONTFIX
Product:
Xfdesktop
Component:
General

Comments

Description Bob Majdak Jr 2006-12-29 19:43:39 CET
the command `xfdesktop --reload` does not seem to re read the ~/.config/xfce4/mcs_settings/desktop.xml file. because of this using xfdesktop and xfce-mcs-manager alone with another window manager upon editing the config file and refreshing the desktop wallpaper or position type never update. requested solution being xfdesktop reread this file or supply a command line interface for changing the desktop wallpaper.
Comment 1 Brian J. Tarricone (not reading bugmail) 2006-12-29 20:20:07 CET
Hmm, I'm not sure this is something that's possible.  Editing the MCS configuration files isn't something you should generally do while xfce-mcs-manager is running.  It's the MCS manager that needs to reload the file, not xfdesktop, and I don't think there's a way to do that.

For changing the backdrop, usually I'd suggest leaving the filename in the config the same, but changing the file on disk.  So if you have a directory full of backdrops, you could symlink 'current-backdrop.png' to whatever you want the backdrop to be.  Then when you want to change it, delete the link, and link 'current-backdrop.png' to something else, and run 'xfdesktop -reload'.  Of course you'd want to set the backdrop image to 'current-backdrop.png' in the settings GUI prior to doing this.

Is this what you're talking about?  It's possible I'm misunderstanding you.
Comment 2 Bob Majdak Jr 2006-12-29 20:40:35 CET
that would be one possible solution i guess. it feels about has hackish as the one we came up with in the irc chat though, setting the config file to a backdrop list and then altering the list file only. ()

granted i have not actually studied the source but looking at the xfdesktop backdrop dialog box (settings/apperance-settings.c), mostly the browse dialog, it looked like two lines of code could easily force just background updates, setting image_path and calling mcs_manager_notify with backdrop channel. this could not be patched into a `xfdesktop --backdrop path` type cli command instead of a browse dialog?
Comment 3 Brian J. Tarricone (not reading bugmail) 2006-12-30 11:07:52 CET
No, it can't.  The settings dialog is not running in the same process as xfdesktop, and there's currently no way to "talk" to the settings dialog via the command line.

At any rate, regardless of whether or not it seems like a hacky solution (I agree, it kinda is), there *is* a workable solution to your problem.

Bug #2690

Reported by:
Bob Majdak Jr
Reported on: 2006-12-29
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Additional information