Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm wondering if is there any way to have a functionality like in KDE: I can set icons to be "locked", so they will not change of location. But in XFCE when I start a game in 800*600 resolution and then return to the desktop it's all messed up. Any solution to this?

Thank's for your time

share|improve this question
add comment

3 Answers

I found a solution on the Ubuntu forums (it's a link from the link Michael Barlach provided).

  • First run this in a terminal:

    sudo chattr +i ~/.config/xfce4/desktop/icons*
    
  • This will lock your icon placement, so that when the desktop is resized, your icons technically remain in the same place.

  • When your desktop gets resized, press F5 to reload it.
  • Optionally, you can create a launcher on the panel with this command: xfdesktop --reload which will reload the desktop.

If you need to reverse the lock on your icon placement run:

sudo chattr -i ~/.config/xfce4/desktop/icons*
share|improve this answer
add comment

An alternative approach without the need for repeated use of "sudo chattr" is described here: http://odoepner.wordpress.com/2012/03/08/backuprestore-xfce-desktop-icons/


What that says is:

Create a file (e.g. save-xfce-desktop-icons.sh) with this content:

#! /bin/sh
mkdir -p ~/.config/xfce4/desktop.bak
cp -f ~/.config/xfce4/desktop/icons* ~/.config/xfce4/desktop.bak

and another one (e.g. load-xfce-desktop-icons.sh):

#! /bin/sh
cp -f ~/.config/xfce4/desktop.bak/icons* ~/.config/xfce4/desktop

Make the scripts executable and in the XFCE start menu, go to “Settings” – “Keyboard” – “Application Shortcuts” and configure 2 keyboard shortcuts for them.

share|improve this answer
add comment

http://ubuntuforums.org/showthread.php?p=11678107#post11678107 Gives the answer

share|improve this answer
3  
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  RolandiXor Feb 10 '12 at 16:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.