2

I want to remove Documents, Music, Pictures, Videos and add cloud to my Nautilus bookmarks as part of an user setup script.

How do I edit the bookmarks via the CLI?

Screenshot of Nautilus's sidebar

u15p7fgy863eiq5
  • 334
  • 2
  • 8
  • 2
    Does this answer your question? [How to remove bookmarks from the Nautilus sidebar?](https://askubuntu.com/questions/79150/how-to-remove-bookmarks-from-the-nautilus-sidebar) – mikewhatever Mar 31 '20 at 16:40
  • 2
    @mikewhatever No, it does not provide a way to add anything to the bookmarks. It only handles user dirs (Home, Downloads, Documents, ...). – u15p7fgy863eiq5 Mar 31 '20 at 23:39

1 Answers1

2

Those bookmarks are controlled by ~/.config/user-dirs.dirs and adding new items configures the appearance of the list.

As an example, to add a Cloud bookmark from the list add a line:

XDG_CLOUD_DIR="$HOME/PATHTOCLOUD"
Zanna
  • 69,223
  • 56
  • 216
  • 327
K7AAY
  • 16,864
  • 9
  • 45
  • 77