26

If I create a bookmark with Nautilus, its location is stored on ~/.gtk-bookmarks, but not its name.

I've created a test bookmark named weirdy, and tried to do a grep on my home for that name, and I found nothing.

Where does Nautilus store bookmark names?

Zanna
  • 69,223
  • 56
  • 216
  • 327
Jorge Suárez de Lis
  • 2,826
  • 3
  • 21
  • 34

2 Answers2

55

They are stored in the ~/.config/gtk-3.0/bookmarks file

In older versions of Ubuntu they are stored in the ~/.gtk-bookmarks file.

The format is:

file:///path/to/folder Bookmark_name

You can also specify other location protocols such as SFTP, FTP, or SMB:

sftp://username@hostname/path/to/folder Bookmark_name
slhck
  • 940
  • 2
  • 8
  • 33
Frantique
  • 8,435
  • 35
  • 51
  • Nautilus from Ubuntu 12.04 is not storing the names in there. However, that will work for storing new bookmarks, just what I needed! Thanks! – Jorge Suárez de Lis Sep 25 '12 at 15:02
  • Note: some characters are urlencoded in the location name (`#`, space, `¤`, `×`, etc.) some are not (`+`, `:`, `!`, `(`, `)`, etc.). It's not a good idea to use these in path names, but the distinction is quite curious. – masu Oct 26 '16 at 09:50
  • Works for me in 14.04. – Martin Pecka Jan 11 '17 at 10:28
  • The path is same: `~/.config/gtk-3.0/bookmarks` as Frantique stated, in Ubuntu 18.04 as well. – Doi Jun 26 '20 at 06:46
0

A GUI method is to open a document from an application such as LibreOffice. Do a Save As and when the window opens, drag the folder into the left column.

I haven't a clue as to why the Preference gear was removed from Nautilus, but it should be restored IMHO.

Christopher
  • 476
  • 4
  • 6