LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-18-2010, 08:43 AM   #1
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Rep: Reputation: 16
Dotfiles becoming undotted in 64-13.1


Recently, a lot of hidden folders in my home directories strated becoming visible, (ie. losing the leading dot) - folders such as 'gtk-2.0', 'google-chrome' and 'textroom' started appearing in my home folder. I though it might be a permissions issue with the . folders, so I deleted the new 'undotted' folders and the old 'dotted' ones. But it seems that every now and then a program triggers something which causes some conf file or another to be written to '~/folder/file' instead of '~/.folder/file'

Anyone have a clue as to what could be causing this?
 
Old 11-18-2010, 09:08 AM   #2
qweasd
Member
 
Registered: May 2010
Posts: 486

Rep: Reputation: Disabled
A Pac-Man is afoot!
 
Old 11-18-2010, 09:20 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,140
Blog Entries: 52

Rep: Reputation: Disabled
All my previously dotted directories are still dotted.
It's a mystery...

Last edited by brianL; 11-18-2010 at 09:21 AM.
 
Old 11-18-2010, 10:41 AM   #4
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Visible where? In Dolphin? The command line?

Perhaps you turned on "Show hidden files" in Dolphin or you have somehow created an alias for ls in bash.
 
Old 11-18-2010, 11:06 AM   #5
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by brixtoncalling View Post
Visible where? In Dolphin? The command line>
Everywhere. These are newly-created real directories; it's not a case of the hidden ones becoming visible.
 
Old 11-18-2010, 07:53 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,578

Rep: Reputation: 468Reputation: 468Reputation: 468Reputation: 468Reputation: 468
Not seeing it here on my system.
 
Old 12-24-2010, 12:54 PM   #7
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by qweasd View Post
A Pac-Man is afoot!
LOL

Seriously, though, this is still happening.

Even deleting a file in Dolphin triggers this - it creates a folder called '/home/me/Trash' and then moves the file there, instead of into '/home/me/.local/share/trash'.

I'd tear my hair out if I wasn't still laughing at the quoted joke...
 
Old 12-24-2010, 01:33 PM   #8
e5150
Member
 
Registered: Oct 2005
Location: Sweden
Distribution: Slackware
Posts: 76

Rep: Reputation: 42
My best guess would be that the $XDG_*_HOME variables are not set, or set to ~
Adding:
export XDG_DATA_HOME=~/.local/share
export XDG_CONFIG_HOME=~/.config
export XDG_CACHE_HOME=~/.cache

to your /etc/profile, bashrc, zshrc, whateverrc might solve the problem.
 
Old 12-24-2010, 02:46 PM   #9
qweasd
Member
 
Registered: May 2010
Posts: 486

Rep: Reputation: Disabled
MMMmmm... This is a mystery indeed. If you still have folders as disparate as 'gtk-2.0', 'google-chrome' and 'textroom' losing dots, there a likely explanation: someone is renaming them. The dottedness, afaik, is a convention. Individual applications dot their own folders and put them in $HOME because they want to, not because of some system setting. (Check that your $HOME is sane.) It is extremely unlikely that unrelated applications all suddenly bug out in this way, so I suspect a single culprit renaming the files. I've never seen a vanilla GNU/Linux install do anything this weird, and I am actually typing this up on a Slack 13.1 x64 that has no such behavior, so think back to customizations you've made and scripts and bash aliases you've added (edit: or removed) since installation.

Last edited by qweasd; 12-24-2010 at 02:47 PM. Reason: more info
 
Old 12-24-2010, 02:50 PM   #10
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by e5150 View Post
My best guess would be that the $XDG_*_HOME variables are not set, or set to ~
Adding:
export XDG_DATA_HOME=~/.local/share
export XDG_CONFIG_HOME=~/.config
export XDG_CACHE_HOME=~/.cache

to your /etc/profile, bashrc, zshrc, whateverrc might solve the problem.
You're a genius - for some reason, my .bash_profile contained the following:
Code:
export XDG_CONFIG_HOME=$HOME
export XDG_DATA_HOME=$HOME
I have changed the above to entries to what you suggested, will report back to see what changes as a result

UPDATE: Just trashed a file and it went to the expected folder. I'll mark this as solved in a couple of days, when I'm sure nothing else funky is going on.

Last edited by ahmadj; 12-24-2010 at 02:53 PM.
 
  


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
Archive dotfiles and dotdirectories only mjmwired Linux - Software 3 05-28-2008 11:01 PM
cp command can't do "dotfiles" netdemon Linux - Software 4 04-01-2005 04:50 AM
About a "dotfiles" section slackie1000 LQ Suggestions & Feedback 5 04-19-2004 01:40 PM
Command line: How do I filter for dotfiles only? unamiccia Linux - General 21 04-14-2004 07:10 PM


All times are GMT -5. The time now is 01:52 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration