where does linux mint 19.1 xfce save desktop icon order

Forum rules
Before you post please read how to get help
Post Reply
User avatar
minty_22
Level 2
Level 2
Posts: 71
Joined: Sat Nov 05, 2016 2:07 pm

where does linux mint 19.1 xfce save desktop icon order

Post by minty_22 » Mon Jul 01, 2019 7:18 pm

i am finding that often the order of the icons on my desktop loose their order, so i am often rearranging them again, its really annoying, im not sure what's causing this,

anyways, where exactly can i find the config file where it stores the order of the desktop icons,

i want to make a backup and quickly restore it after they loose order, this way i don't spend anymore time rearranging them

is it one of those file fonud in?:

/home/minty/.config/xfce4/xfconf/xfce-perchannel-xml/


help!

User avatar
minty_22
Level 2
Level 2
Posts: 71
Joined: Sat Nov 05, 2016 2:07 pm

Re: where does linux mint 19.1 xfce save desktop icon order

Post by minty_22 » Mon Jul 01, 2019 7:53 pm

i found it! its the whole folder called "desktop" in

/home/minty/.config/xfce4/


i made a backup of that folder, then i moved icons around, restarted, then replaced the desktop folder and my icons went back to the normal place

im not sure what's causing it that to happen, possibly, i was messing around with the display settings,

anyways that seems to work! will save me lots of wrist pain from moving icons around

slavko
Level 1
Level 1
Posts: 39
Joined: Thu Mar 24, 2016 4:15 pm

Re: where does linux mint 19.1 xfce save desktop icon order

Post by slavko » Tue Jul 02, 2019 8:48 am

It happens occasionally on every Xfce system I installed. It's a known Xfce problem. I have a script (which I execute with keyboard shortcuts) that fixes icons when it happens. Maybe you will find it useful:

Code: Select all

#!/bin/bash
#
# purpose     : back up & restore desktop icons positions, in case xfdesktop mess them up
# installation: copy to /usr/local/bin; make keyboard shortcuts
# usage       : desktop-icons -b  (back up positions)
#               desktop-icons -r  (restore positions)
# version     : 1.0  (March 2012) - Oliver Doepner, original idea
#               1.1  (January 2016) - unknown author, script
#               1.2  (September 2018) - Slavko, cleaning & documenting


DIR_BACKUP=~/.config/xfce4/desktop.backup
DIR_CONFIG=~/.config/xfce4/desktop

# back up positions

if [ "$1" = -b ]; then
    mkdir -p $DIR_BACKUP
    cp -f $DIR_CONFIG/icons* $DIR_BACKUP
#   notify-send -i gtk-add "Icons positions BACKED UP!" " "
    notify-send -i winecfg "Icons positions BACKED UP!" " "
fi

# restore positions

if [ "$1" = -r ]; then
    cp -f $DIR_BACKUP/icons* $DIR_CONFIG
    xfdesktop -R
    set -- $DIR_BACKUP/icons*
#   notify-send -i gtk-refresh "Icons positions RESTORED!"\
#       "(Using back up from  `date -r $1 +%Y-%m-%d\ \ %H:%M:%S`)"
    notify-send -i wine "Icons positions RESTORED!"\
        "(Using back up from  `date -r $1 +%Y-%m-%d\ \ %H:%M`)"
fi
Obviously, name of the script would be 'desktop-icons' and it takes care of both back-up and restore process.

Post Reply

Return to “Xfce”