Sunday, February 3, 2013

Modify "Places" menu in Nautilus (file viewer) on Fedora 18

Edit ~/.config/user-dirs.dirs and change appropriate lines to match with following lines:
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

Log out and log back in and you will find entries for Music, Pictures and Videos removed from "Places" menu in file viewer.

9 comments:

  1. Thank you so much. That worked to me.

    ReplyDelete
  2. works fine for me with nautilus 3.6.3 running on arch linux with a cinnamon desktop.

    ReplyDelete
  3. awwwww, it didnt work for me. I am running Fedora 18 with lastest updates as of May 2/2013.

    when i cut out the lines for music and templates..... and restart i see the file restored to its original state, someone is writing to this file during boot rather than reading from it.

    ReplyDelete
    Replies
    1. Chev: you are saying that you cut out the lines. Please do not cut or delete any lines. Just "modify" them as mentioned above.

      Delete
  4. Hmmmm, i found a solution,
    yum install nemo

    ReplyDelete
    Replies
    1. Chev: you are saying that you cut out the lines. Please do not cut or delete any lines. Just "modify" them as mentioned above.

      Delete
  5. Thanks for the tip. Is it possible to add more directories? I don't want to create bookmarks.

    ReplyDelete
    Replies
    1. I guess if you change a line to XDG_MUSIC_DIR="$HOME/audio", the OS will treat ~/audio as default music folder. XDG_MUSIC_DIR seems to be a special environment variable and its contents will be listed in Nautilus panel.

      Delete