LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-23-2013, 12:48 AM   #1
waddles
Member
 
Registered: Sep 2012
Posts: 372

Rep: Reputation: 1
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

Last edited by waddles; 10-23-2013 at 01:01 AM.
 
Old 10-23-2013, 02:16 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

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

- chattr - wiki
- chattr
- lsattr
 
2 members found this post helpful.
Old 10-23-2013, 03:12 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using chattr +c on ext4 fs Andy Alt Slackware 8 01-30-2011 03:20 AM
chattr not working JJX Linux - Newbie 3 10-18-2005 03:39 AM
chattr + 2.4.20-lq2? tarballedtux Linux - Security 3 01-06-2003 08:30 AM
need help with chattr ruprick Linux - Newbie 4 02-19-2002 10:39 AM
chattr usage sancho5 Linux - General 0 11-21-2001 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration