LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-31-2010, 12:00 PM   #1
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Rep: Reputation: 10
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).
 
Old 12-31-2010, 12:02 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
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.
 
Old 12-31-2010, 12:05 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
Old 12-31-2010, 01:27 PM   #4
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
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.
 
Old 01-01-2011, 12:49 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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/.
 
Old 01-01-2011, 01:15 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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.
 
1 members found this post helpful.
Old 01-01-2011, 02:10 PM   #7
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
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?
 
Old 01-01-2011, 10:50 PM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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".
 
Old 01-02-2011, 09:54 AM   #9
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
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.
 
Old 01-05-2011, 01:16 PM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
No idea from me, I'm afraid. catkin? SkyerSK, have you also tried the Xfce forums?
 
Old 01-05-2011, 09:19 PM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by SkyerSK View Post
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?
 
Old 01-06-2011, 11:09 AM   #12
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
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.
 
Old 01-07-2011, 10:21 AM   #13
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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).
 
Old 01-29-2011, 03:48 PM   #14
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change colors - XFCE icon text and text background bgryderclock Linux - Software 6 09-19-2014 03:49 AM
Desktop background loads then fades out, Zenwalk 6.2, XFCE deathalele Linux - Newbie 2 04-29-2010 11:04 AM
sometimes when im on XFCE my background and some menu suddenly turns to GNOME. wakkana12 Slackware 20 02-09-2010 01:09 AM
Xfce 4.2 background problem Doolspin Linux - Software 7 02-13-2005 07:12 PM
Change background in solaris and Xterm background also EvilAngel Solaris / OpenSolaris 2 01-31-2005 12:25 PM


All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration