Change Desktop folder

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Locked
plasticassius
Posts: 3
Joined: Mon Apr 29, 2013 9:49 pm

Change Desktop folder

Post 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.
Locked