LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change background on Xorg (xfce) (https://www.linuxquestions.org/questions/linux-newbie-8/change-background-on-xorg-xfce-853451/)

SkyerSK 12-31-2010 11:00 AM

Change background on Xorg (xfce)
 
Hello,
I'd like to change my background on xfce xorg computer. Could you please tell me name of some configuration file or directory where it's specified? Thanks.

(Just in case, I am running Xubuntu 10.10).

indienick 12-31-2010 11:02 AM

I'm fairly certain that if you right-click on the background, one of the options will indicate it lets you change the desktop background.

Alternately, if memory serves (I'm using regular Ubuntu with GNOME, not Xfce), if you click on the little mouse menu, then the settings submenu, there should be a "desktop settings" item, or something similar.

Nylex 12-31-2010 11:05 AM

Yes. You want "Desktop Settings" in the right-click menu. You can also run xfce4-settings-manager in a terminal and choose the "Desktop" item.

SkyerSK 12-31-2010 12:27 PM

Thanks for your reply. Although, I was searching for file/dir where path/image is located, since I am trying to change desktop background through console remotely with SSH.

Nylex 01-01-2011 11:49 AM

Some googling suggests that the config info is stored in ~/.config, so look under there. On my system, I have xfce4 and xfce4-session as subdirectories of .config, but I can't find any information relating to the background (though I did find the file containing my own keyboard shortcuts). In any case, have a look. You might also want to interact with the Xfce developers, via their forums at http://forum.xfce.org/.

catkin 01-01-2011 12:15 PM

Xfce keeps its list of backgrounds/wallpapers/backdrops in /home/c/.config/xfce4/desktop/backdrop.list. It chooses one at random during session initialisation. You may be able to do what you want by writing the desired image's full path into backdrop.list as the only image file path and running xfdesktop --reload.

SkyerSK 01-01-2011 01:10 PM

Thanks for your answers. I followed hints in your posts, and finally found the file: "/home/user/.config/xfce4/xfconf/xfce4-desktop.xml". But, my problem actually remains, since even when I change values specified there, desktop won't reload. I tried pressing Ctrl+R (works for icon positions), and running "xfdesktop --reload". Am I missing something? or is there any other command to reload desktop?

catkin 01-01-2011 09:50 PM

On Slackware64 13.1 with Xfce 4.6.1 the equivalent file is ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml (it would be nice to know what that xfce-perchannel-xml directory is for) and it contains:
Code:

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-desktop" version="1.0">
  <property name="backdrop" type="empty">
    <property name="screen0" type="empty">
      <property name="monitor0" type="empty">
        <property name="image-path" type="string" value="/home/c/.config/xfce4/desktop/backdrop.list"/>
        <property name="last-image" type="string" value="/usr/share/xfce4/backdrops/xfce-stripes.png"/>
        <property name="last-single-image" type="string" value="/usr/share/xfce4/backdrops/xfce-stripes.png"/>
        <property name="last-image-list" type="string" value="/home/c/.config/xfce4/desktop/backdrop.list"/>
        <property name="image-style" type="int" value="5"/>
      </property>
    </property>
  </property>
  <property name="desktop-icons" type="empty">
    <property name="file-icons" type="empty">
      <property name="show-home" type="bool" value="false"/>
      <property name="show-filesystem" type="bool" value="false"/>
      <property name="show-trash" type="bool" value="false"/>
      <property name="show-removable" type="bool" value="false"/>
    </property>
  </property>
</channel>

xfdesktop -reload does change the backdrop to a random image from /home/c/.config/xfce4/desktop/backdrop.list

It may be worth creating backdrop.list interactively in case consistent changes are required in more files than xfce4-desktop.xml alone. "Desktop settings" -> Images -> "Image list".

SkyerSK 01-02-2011 08:54 AM

Thanks for your reply. I am using "single image" option, what excuses absence of "/home/c/.config/xfce4/desktop/backdrop.list" file. Although, I still can't change desktop backround, xfdesktop -reload does not work for me, and I am not much good with strace too.

Nylex 01-05-2011 12:16 PM

No idea from me, I'm afraid. catkin? SkyerSK, have you also tried the Xfce forums?

catkin 01-05-2011 08:19 PM

Quote:

Originally Posted by SkyerSK (Post 4210385)
Thanks for your reply. I am using "single image" option, what excuses absence of "/home/c/.config/xfce4/desktop/backdrop.list" file. Although, I still can't change desktop backround, xfdesktop -reload does not work for me, and I am not much good with strace too.

xfdesktop -reload will only change the background if it has more than one to choose from so it will not work with the "single image" option. If you want only one background -- a different one from the one you have now -- why don't you change it via "Desktop settings" -> Images? And why do you want to know the configuration file or directory where it's specified?

SkyerSK 01-06-2011 10:09 AM

Nylex: No, haven't tried them so far, but I wanted to try solving it here, since I like having less accounts.
catkin: I want to change background remotely, through SSH. Not like I can't access computer physically, but I'd rather do it through network. Another thing is that I don't like things "being magic", just searching for "how does it work".

Thanks for your replies.

catkin 01-07-2011 09:21 AM

OK. You could try manually editing <property name="last-single-image" type="string" value="<whatever>"/> and running xfdesktop -reload; if that works you could script it. Finding out how things work is sometimes a mixture of guesswork, experimentation and not being worried about breaking things (so always make sure you can get back to how things were before experimenting).

SkyerSK 01-29-2011 02:48 PM

Yeah, thanks for advice. I've been having some problems with computer, and it took me while to get back here and scroll through posts. As far as I remember, I tried that, but it didn't work. But I am actually back to Gnome desktop, so topic is not actually. Thanks for your participation, and sorry for reviving old post. (Not sure if mark it as solved, but if anyone knows answer, feel free to post).


All times are GMT -5. The time now is 09:46 PM.