<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.xfce.org/extern.php?action=feed&amp;tid=7597&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / Desktop icons rearrange on reboot]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=7597</link>
		<description><![CDATA[The most recent posts in Desktop icons rearrange on reboot.]]></description>
		<lastBuildDate>Tue, 01 Jan 2013 01:43:40 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=28414#p28414</link>
			<description><![CDATA[<p>Try this: set up your desktop exactly the way you want to see it when you boot.&#160; (Remember, though, that all programs will open on your first workspace, not the one they were on before.)&#160; Log out, making sure that Save Session for future logins is checked, then log back in.&#160; Unless there&#039;s something messing with your settings, this should do it.</p>]]></description>
			<author><![CDATA[dummy@example.com (Sideburns)]]></author>
			<pubDate>Tue, 01 Jan 2013 01:43:40 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=28414#p28414</guid>
		</item>
		<item>
			<title><![CDATA[Re: Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=28391#p28391</link>
			<description><![CDATA[<div class="quotebox"><cite>lazork wrote:</cite><blockquote><div><p>I&#039;ve already looked a round on this forum for a solution, but the only thread I found doesn&#039;t have one.<br />Basically my desktop icons rearrange themeselves every time I login.<br />I&#039;ve already tried to backup the icons on shutdown/logout by replacing the launcher on the panel with the script:</p><div class="codebox"><pre><code>#!/bin/sh
mkdir -p ~/.config/xfce4/desktop.bak
cp - f ~/.config/xfce4/desktop/* ~/.config/xfce4/desktop.bak
xfce4-session-logout</code></pre></div><p>and this is working, but I haven&#039;t managed to automatically restore them when the session starts.<br />I tried adding this script to the list of programs executed on login:</p><div class="codebox"><pre><code>#!/bin/sh
sleep 20
cp - f ~/.config/xfce4/desktop.bak/* ~/.config/xfce4/desktop
xfdesktop --reload</code></pre></div><p>I know the script is being executed because I can see the desktop reloading after 20 seconds, and I know that if I launch the script manually it does its job.<br />Still, it doen&#039;t properly restore the icons positions if it&#039;s automatically executed (I really can&#039;t understand why!).</p><p>Am I the only one whose icons keep moving?<br />Is there a way to fix this issue (either by preventing them to move, by fixing my scripts or by some other means)?<br />Thanks in advance to anyone who can share some ideas</p></div></blockquote></div><p>I had the same problem, I found this works for me, a slight change to your script.</p><p>I added this to my logout/shutdown script</p><div class="codebox"><pre><code>mkdir -p ~/.config/xfce4/desktop.bak
xfdesktop --reload; sleep .5; cp -f ~/.config/xfce4/desktop/* ~/.config/xfce4/desktop.bak/</code></pre></div><p>This script to my Startup directory, I know it looks weird, but if I don&#039;t call on xfdesktop --reload to begin with, I need to run the script twice to refresh the desktop<br />and the sleep statements are needed also for it to function correctly.</p><div class="codebox"><pre><code>#!/bin/sh
xfdesktop --reload; sleep .5; cp -f ~/.config/xfce4/desktop.bak/* ~/.config/xfce4/desktop/; sleep .5; xfdesktop --reload</code></pre></div><p>Hope it&#039;s of some help.</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoffrey)]]></author>
			<pubDate>Sat, 29 Dec 2012 09:01:15 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=28391#p28391</guid>
		</item>
		<item>
			<title><![CDATA[Re: Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=28007#p28007</link>
			<description><![CDATA[<div class="quotebox"><cite>lazork wrote:</cite><blockquote><div><p>Btw, is the desktop drawing speed (or slowness) an issue for anybody else?</p></div></blockquote></div><p>Yes.&#160; But since I no longer have many desktop icons, it&#039;s not much of a problem.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Wed, 14 Nov 2012 16:11:27 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=28007#p28007</guid>
		</item>
		<item>
			<title><![CDATA[Re: Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=28006#p28006</link>
			<description><![CDATA[<div class="quotebox"><cite>ToZ wrote:</cite><blockquote><div><p>Ahhhh, I see. I just tried out your scripts in a 4.10 VM and they worked fine - in that the icon locations restored after the 20 second delay. I did notice an error in your script (space between &quot;-&quot; and &quot;f&quot; in the copy command), but it still worked regardless. </p><p>What version of Xfce are you using?</p></div></blockquote></div><p>I&#039;m using 4.10 from the archlinux repo.</p><p>The space between &quot;-&quot; and &quot;f&quot; is just a typo I made while rewriting the script in my first post, it&#039;s not there in the real script.<br />It kind of works for me too, but it only restores about 80% of the icons (lots of icons on the desktop).<br />I&#039;ll try to further increase the delay to something like 30 seconds (it&#039;s an old laptop, it takes it a lot of time to draw all the icons on the desktop, maybe after 20 seconds it&#039;s not really finished yet)<br />Btw, is the desktop drawing speed (or slowness) an issue for anybody else? Not only does it take a lot of time to load the icons in the first place, but the re-drawing, when moving windows over it, it&#039;s slow as well...</p>]]></description>
			<author><![CDATA[dummy@example.com (lazork)]]></author>
			<pubDate>Wed, 14 Nov 2012 12:09:04 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=28006#p28006</guid>
		</item>
		<item>
			<title><![CDATA[Re: Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27998#p27998</link>
			<description><![CDATA[<div class="quotebox"><cite>lazork wrote:</cite><blockquote><div><p>The problem is that making the files immutable won&#039;t allow me to add or move files on the desktop in the future.<br />Since I&#039;m not the one who will be using this computer, I need it to behave properly without needing the user to take any particular action.</p></div></blockquote></div><p>Ahhhh, I see. I just tried out your scripts in a 4.10 VM and they worked fine - in that the icon locations restored after the 20 second delay. I did notice an error in your script (space between &quot;-&quot; and &quot;f&quot; in the copy command), but it still worked regardless. </p><p>What version of Xfce are you using?</p>]]></description>
			<author><![CDATA[dummy@example.com (ToZ)]]></author>
			<pubDate>Tue, 13 Nov 2012 19:28:09 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27998#p27998</guid>
		</item>
		<item>
			<title><![CDATA[Re: Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27994#p27994</link>
			<description><![CDATA[<p>Because of xfce&#039;s inability to allow for custom arrangement of &#039;permanent&#039; desktop icons, I have removed all of them to a hidden panel with custom launchers.&#160; Now I only use my desktop as a transitional area for downloads and currently working files that will eventually be shuttled off elsewhere.&#160; &#160;I&#039;m really liking a pristine desktop uncluttered with icons (most of the time).&#160; <img src="http://forum.xfce.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Tue, 13 Nov 2012 16:40:31 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27994#p27994</guid>
		</item>
		<item>
			<title><![CDATA[Re: Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27993#p27993</link>
			<description><![CDATA[<p>The problem is that making the files immutable won&#039;t allow me to add or move files on the desktop in the future.<br />Since I&#039;m not the one who will be using this computer, I need it to behave properly without needing the user to take any particular action.</p>]]></description>
			<author><![CDATA[dummy@example.com (lazork)]]></author>
			<pubDate>Tue, 13 Nov 2012 14:42:46 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27993#p27993</guid>
		</item>
		<item>
			<title><![CDATA[Re: Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27992#p27992</link>
			<description><![CDATA[<p>Here is another suggestion. Once you have the icons in the location that you want, execute the following command to make the icon config file read-only:</p><div class="codebox"><pre><code>sudo chattr +i ~/.config/xfce4/desktop/icons*</code></pre></div><p>This way, none of the changes will be saved/reverted and on every login, the icons should revert to their saved locations. If they are shuffled during operations, a simple &quot;xfdesktop --reload&quot; should reset them.</p><p>Note that if you want to permanently move icon locations, you will have to run:</p><div class="codebox"><pre><code>sudo chattr -i ~/.config/xfce4/desktop/icons*</code></pre></div><p>...to make the files writeable again.</p>]]></description>
			<author><![CDATA[dummy@example.com (ToZ)]]></author>
			<pubDate>Tue, 13 Nov 2012 14:13:13 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27992#p27992</guid>
		</item>
		<item>
			<title><![CDATA[Desktop icons rearrange on reboot]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27991#p27991</link>
			<description><![CDATA[<p>I&#039;ve already looked a round on this forum for a solution, but the only thread I found doesn&#039;t have one.<br />Basically my desktop icons rearrange themeselves every time I login.<br />I&#039;ve already tried to backup the icons on shutdown/logout by replacing the launcher on the panel with the script:</p><div class="codebox"><pre><code>#!/bin/sh
mkdir -p ~/.config/xfce4/desktop.bak
cp - f ~/.config/xfce4/desktop/* ~/.config/xfce4/desktop.bak
xfce4-session-logout</code></pre></div><p>and this is working, but I haven&#039;t managed to automatically restore them when the session starts.<br />I tried adding this script to the list of programs executed on login:</p><div class="codebox"><pre><code>#!/bin/sh
sleep 20
cp - f ~/.config/xfce4/desktop.bak/* ~/.config/xfce4/desktop
xfdesktop --reload</code></pre></div><p>I know the script is being executed because I can see the desktop reloading after 20 seconds, and I know that if I launch the script manually it does its job.<br />Still, it doen&#039;t properly restore the icons positions if it&#039;s automatically executed (I really can&#039;t understand why!).</p><p>Am I the only one whose icons keep moving?<br />Is there a way to fix this issue (either by preventing them to move, by fixing my scripts or by some other means)?<br />Thanks in advance to anyone who can share some ideas</p>]]></description>
			<author><![CDATA[dummy@example.com (lazork)]]></author>
			<pubDate>Tue, 13 Nov 2012 12:50:21 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27991#p27991</guid>
		</item>
	</channel>
</rss>
