LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Using chattr (https://www.linuxquestions.org/questions/slackware-14/using-chattr-4175481811/)

waddles 10-23-2013 12:48 AM

Using chattr
 
I had been looking for a way to find locate on the screen by x & y the position of a single icon. I ran into this on the Internet:
Code:

Save with:
    sudo chattr +i ~/.config/xfce4/desktop/icons*
    F5 TO RELOAD IF RESIZED
    OR LAUNCHER WITH
    xfdesktop --reload

If you need to reverse the lock on your icon placement run:
    sudo chattr -i ~/.config/xfce4/desktop/icons*

I have read the man page on chattr but don't quite know its function.
From the man page the file system it is using seems to arrange files differently than ext3. I checked the HOW TOs and came up empty.
Could someone point me somewhere where it has a bit more info?
And I presume this command is being applied to all icons. Is there a way to locate and change the icons position individually?
ADDENDUM
Yes it can be used on individual files.
Neat way to protect Passwords
Found what I needed

druuna 10-23-2013 02:16 AM

Although this is marked as being solved, here are some chattr (and lsattr) related links:

- chattr - wiki
- chattr
- lsattr

gnashley 10-23-2013 03:12 AM

The '+i' option simply makes it impossible to modify, delete or rename the file(s) and has nothing to do with locating a pixel or its position.


All times are GMT -5. The time now is 05:33 PM.