LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   renaming xfce default folders (http://www.linuxquestions.org/questions/slackware-14/renaming-xfce-default-folders-4175438596/)

darkstar61 11-25-2012 12:43 AM

renaming xfce default folders
 
since i'm anticapitalist to the bone (having a lazydiosynchrasy wit the shift key, expecially when working with console/terminal) i would rename the defaults folders uncapitalizing them > downloads, music, videos etc...)

i'm assuming just renaming them doesn't do the trick, so i guess should there is around a sort of xfce related file that creates that folders

anyone could point me in the right direction to spot that file? (i did some searches but with no luck)

thnx in advance

ukiuki 11-25-2012 01:08 AM

Did you do it from the terminal? Have you tried through Thunar? I don't think the terminal will update that file you are talking about but Thunar might, if you have that installed. Also have you check the files that start with a dot in your home folder, probably one of them will have what you are looking for.

Regards

Diantre 11-25-2012 01:13 AM

Quote:

Originally Posted by darkstar61 (Post 4836366)
anyone could point me in the right direction to spot that file? (i did some searches but with no luck)

I think the file you're looking for is /etc/xdg/user-dirs.defaults.

darkstar61 11-25-2012 01:57 AM

Quote:

Originally Posted by Diantre (Post 4836372)
I think the file you're looking for is /etc/xdg/user-dirs.defaults.

thnx a lot for spotting me to that file...

i edited it as root, uncapitalizing the directories

Code:

relaxing@camarillo:~$ less /etc/xdg/user-dirs.defaults

# Default settings for user directories
#
# The values are relative pathnames from the home directory and
# will be translated on a per-path-element basis into the users locale
DESKTOP=desktop
DOWNLOAD=downloads
TEMPLATES=templates
PUBLICSHARE=public
DOCUMENTS=documents
MUSIC=music
PICTURES=pictures
VIDEOS=videos
# Another alternative is:
#MUSIC=Documents/Music
#PICTURES=Documents/Pictures
#VIDEOS=Documents/Videos

saved it then log out completely (exit from console), but at the successive login the directories remained capitalized (i restarted the box too, to be shure)

any hints?

thnx again

Diantre 11-25-2012 02:53 AM

Quote:

Originally Posted by darkstar61 (Post 4836393)
saved it then log out completely (exit from console), but at the successive login the directories remained capitalized (i restarted the box too, to be shure)

Probably you need to run /usr/bin/xdg-user-dirs-update --force to create the directories, but before you do that, have a look at these links:

http://freedesktop.org/wiki/Software/xdg-user-dirs

http://www.unix.com/man-page/OpenSol...r-dirs-update/

The system wide configuration is done in /etc/xdg/user-dirs.defaults, the user configuration goes in $HOME/.config/user-dirs.dirs:

Code:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"


darkstar61 11-25-2012 05:51 AM

1 Attachment(s)
thnx a lot diantre to pointing me to the xdg thing (i was totally unaware of...)

worked--- :)

Attachment 11307

far as i understand, this configuration should work with all the freedesktop compatible de, right?

thnx a lot for the insight again

darkstar61 11-25-2012 12:20 PM

Quote:

Originally Posted by ukiuki (Post 4836370)
Did you do it from the terminal? Have you tried through Thunar? I don't think the terminal will update that file you are talking about but Thunar might, if you have that installed. Also have you check the files that start with a dot in your home folder, probably one of them will have what you are looking for.

Regards

actually i was looking for any xfce related file, since i was unaware of the xdg file(s)

thnx a lot anyway for taking the time to replying to my post...


All times are GMT -5. The time now is 06:34 AM.