Tuesday, February 11, 2014

Delete some default Ubuntu home dir folders

To permanently delete dirs from ~

  • music
  • pictures
  • videos


$ cd ~
$ rmdir Music Videos Pictures


/etc/xdg/user-dirs.conf (overrided by ~/.config/user-dirs.conf) - Allows you to enable or disable the automatic folder (re-)creation. If you set enabled=False, either globally of for your own user only, special folders will not be re-created at login anymore in case you delete or rename the folders.

edit /etc/xdg/user-dirs.conf so it reads as followes:

gcb@T510:/etc/xdg$ cat /etc/xdg/user-dirs.conf

# This controls the behaviour of xdg-user-dirs-update which is run on user login
# You can also have per-user config in ~/.config/user-dirs.conf, or specify
# the XDG_CONFIG_HOME and/or XDG_CONFIG_DIRS to override this
#

# 11-Feb-2014 gcb change from default of True to now be false. disable of special dirs in $HOME for all users
#enabled=True
enabled=False

# This sets the filename encoding to use. You can specify an explicit
# encoding, or "locale" which means the encoding of the users locale
# will be used
filename_encoding=UTF-8


No comments:

Post a Comment