Page 1 of 1

Change Desktop folder

Posted: Sat Oct 26, 2013 9:52 pm
by plasticassius
I like to change my desktop folder depending on what I'm doing. Currently I use the following code:

Code: Select all

pcmanfm --desktop-off
sleep 1
ln -snf "$deskTop" ~/Desktop
pcmanfm --desktop --profile "$DESKTOP_SESSION" &
Is there some way to do this without relying on the arbitrary sleep. I guess that if pcmanfm --desktop-off didn't return until the desktop was really off, that would be ideal.