#305 Change Desktop path


I like to change my desktop folder depending on what I'm doing. Currently I use the following code:

pcmanfm --desktop-off
sleep 1
ln -snf "$deskTop" ~/Desktop
pcmanfm --desktop --profile "$DESKTOP_SESSION" &

This is unreliable due to the arbitrary sleep time. Also, I would rather this be faster. Ideally there could be something like this:

pcmanfm --desktop-update


  • Lonely Stranger

    Lonely Stranger - 2014-01-02

    The feature to disable desktop icons or select custom folder to display for selected monitor is implemented in current GIT sources for PCManFM. No command-line option is added, everything is managed using Desktop Preferences window, in the tab Advanced, so you can immediately see your changes.
    Your hack will be not required anymore.
    Thank you very much.

  • Lonely Stranger

    Lonely Stranger - 2014-01-02
    • assigned_to: nobody --> lstranger
    • status: open --> closed-fixed
  • Peter Maivald

    Peter Maivald - 2015-05-09

    I would like to renew my new functionality request since a preferences window isn't what I was asking for. I'm using a script to change the desktop folder location, so updating a preferences window isn't possible. Rather, I would like a way to signal PCManFM to re-read configuration files. For example:

    xdg-user-dirs-update --set DESKTOP /work/desktops/3
    killall -USR2 pcmanfm

    I have deliberately used the URS2 signal here since that is what openbox uses to refresh itself after configuration file updates. For example, I can write a script such as openbox-rc-dinkey and have openbox reflect the change immediately:

    openbox-rc-dinkey /home/"$USER"/.config/openbox/"$desktop_session"-rc.xml
    killall -USR2 openbox



Cancel  Add attachments