Navigatrix.net - A Voyager's Companion
http://navigatrix.net/

How to get rid of the "home" desktop shortcut
http://navigatrix.net/viewtopic.php?f=4&t=649
Page 1 of 1

Author:  zenfunk [ 02 Jun 2014, 02:39 ]
Post subject:  How to get rid of the "home" desktop shortcut

On the desktop there is a home.desktop file which I can't get rid off. Moving it to the trash is not working, starting pcmanfm as root doesn't help, I can't change permissions and even 'sudo rm -f home.desktop' is not permitted. I am working on a harddrive installed instance of navigatrix- any clues?

Cheers, Christian

Author:  David [ 02 Jun 2014, 13:39 ]
Post subject:  Re: How to get rid of the "home" desktop shortcut

Its the "i" attribut which is set. You can remove it with
sudo chattr -i /home/$USER/Desktop/home.desktop

Author:  zenfunk [ 02 Jun 2014, 23:24 ]
Post subject:  Re: How to get rid of the "home" desktop shortcut

Ah, hanks a lot, Ilearn something new evry day. Didn't know about that one. What was he reason to use the "i" attribute? Just write protection, or something else?

Author:  David [ 02 Jun 2014, 23:37 ]
Post subject:  Re: How to get rid of the "home" desktop shortcut

Just to make sure it does not get deleted by accident.

Author:  Moe [ 03 Jun 2014, 02:28 ]
Post subject:  Re: How to get rid of the "home" desktop shortcut

I learn something new every day as well. i is for immutable, a is for appendable.
Code:
sudo chattr -R +a ~/Desktop/
For example, makes the directory Desktop, and everything in it recursively, appendable, but data/files cannot be removed.

The same applies to individual files. Data can be added, but not removed until the attribute flag is flipped back.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/