![desktop icons not working desktop icons not working](https://i.ytimg.com/vi/tP50tRRVbR4/maxresdefault.jpg)
(feel free to change the names and locations of the directories as you prefer as long as the script code and launcher directories are also changed accordingly) unlock them, re-arrange, then lock them down again.įor the purpose of these instructions replace "xxx" with your home folder name.Ĭreate the folders "/home/xxx/Linux_stuff/Icons" Double click the icon again and enter password again to lock them down. Then set all desktop icons where you want them. Enter your password in the terminal that pops up. To put an icon on your desktop that has a script that will lock/unlock your desktop icons so that they reload to the place you want them to be on reboot.ĭouble click the icon to unlock. Here's a step by step rewrite of that with the addition of reloading the desktop after reboot: In my opinion shakebake created a nice way to lock and unlock the desktop. I'm running Ubuntu Studio 14.04 LTS and Xfce 4.10 I believe I have formed a hybrid solution (workaround) derrived from the best answers given in this thread. ( I used the closed lock png for "icon-lock.png", it looks good ) Rename one "icon-lock.png" and rename the other "icon-unlock.png" Put them in the ~/Linux_stuff/Icons folder ( or whatever folder you use ). Sudo chattr +i ~/.config/xfce4/desktop/icons*Ģ) you will need a folder ~/scripts to put IconLockSet.sh in ( or change theģ) you will need a folder ~/Linux_stuff/Icons to put the icons "icon-lock.png"Īnd "icon-unlock.png" in ( or change the code to your folder to suit )Ĥ) Go to the icon database and grab a couple of icons you want to use and Sed '/LockStatus=/ c\LockStatus=Locked' /home/xxx/Desktop/sktop Sed '/Icon=/ c\Icon=\/home\/xxx\/Linux_stuff\/Icons\/icon-lock.png' /home/xxx/Desktop/tmp.desktop
![desktop icons not working desktop icons not working](https://www.online-tech-tips.com/wp-content/uploads/2020/03/show-desktop-icons.png)
![desktop icons not working desktop icons not working](https://benisnous.com/wp-content/uploads/2020/11/Fix-Desktop-Icons-Not-Moving-in-Windows-7810-800x445.jpg)
If grep -q "LockStatus=Unlocked" "/home/xxx/Desktop/sktop" then Sed '/LockStatus=/ c\LockStatus=Unlocked' /home/xxx/Desktop/sktop Sed '/Icon=/ c\Icon=\/home\/xxx\/Linux_stuff\/Icons\/icon-unlock.png' /home/xxx/Desktop/tmp.desktop Sudo chattr -i ~/.config/xfce4/desktop/icons* If grep -q "LockStatus=Locked" "/home/xxx/Desktop/sktop" then