Where is the "Starred" directory in the Nautilus sidebar stored
Solution 1
Files in certain locations such as ~/Documents can be starred by right-clicking on them in Nautilus and choosing to star them.
The ability to star files requires you to have "Search" (which uses Tracker) active. "Search" is enabled via the Settings icon in your launcher (and not from Nautilus):
Then you can star or unstar files in Nautilus:
And by clicking on the star icon, you can list starred files:
However, it appears that only a limited set of files or folders can be starred by default.
How to add folders so that they can be tracked and starred:
In the image below, in Settings > Search clicking on the little ⚙ (gear) icon opens a new window titled "Search Locations" to allow you to add additional folders. Click on the + icon to get a list of folders you can include.
I found a reboot helpful in getting those new folders to be registered properly.
And here is an image showing various folders and files I've added and starred.
- ~/.config folder is starred
- a folder, SubDesktop1, within ~/Desktop is starred
- a file, dconf1.txt, within ~/Desktop/SubDesktop1 is starred as can be seen from the Properties window.
- for me, it appears that a reboot is needed when a "non-standard" folder is to be starred (and tracked).
If I make any changes to the list of starred files, the only file to change on my system is ~/.local/share/tracker/data/tracker-store.journal. While there maybe a way to query that journal, I don't know how.
(~/.config/dconf/user also changes but I've dumped the contents of dconf/user before and after starring/unstarring files and there were no changes related to starring/unstarring files.)
You can check out tracker-related files in your home folder using locate ~/*tracker*
but, as I pointed out above, the only file related to starring is ~/.local/share/tracker/data/tracker-store.journal.
dkb: ~ $ locate ~/*tracker*
/home/dkb/.cache/tracker
/home/dkb/.cache/tracker/db-locale.txt
/home/dkb/.cache/tracker/db-version.txt
/home/dkb/.cache/tracker/first-index.txt
/home/dkb/.cache/tracker/last-crawl.txt
/home/dkb/.cache/tracker/locale-for-miner-apps.txt
/home/dkb/.cache/tracker/meta.db
/home/dkb/.cache/tracker/meta.db-shm
/home/dkb/.cache/tracker/meta.db-wal
/home/dkb/.cache/tracker/ontologies.gvdb
/home/dkb/.cache/tracker/parser-version.txt
/home/dkb/.local/share/tracker
/home/dkb/.local/share/tracker/data
/home/dkb/.local/share/tracker/data/.meta.isrunning
/home/dkb/.local/share/tracker/data/tracker-store.journal
/home/dkb/.local/share/tracker/data/tracker-store.ontology.journal
Solution 2
The "star" attribute for files is stored in the tracker database. Tracker is the file indexing and search framework used by Gnome Shell and as such also by Ubuntu. The tracker databases are kept in $HOME/.cache/tracker
. The user's data backup is kept in $HOME/.local/share/tracker/data
.
The star feature accordingly only works on directories that are tracked by tracker.
Related videos on Youtube
i9pp0
Updated on September 18, 2022Comments
-
i9pp0 over 1 year
I am looking for the location of the "Starred" directory that is listed at the top of the sidebar in Nautilus on Ubuntu 19.04. I can find nothing under the name "Starred" on my system.
-
Admin almost 5 yearsNow we have Boomarks and Starred. Boomarks is indeed in .config/gtk3.0 but "Starred" is not there. Its the same list thats in user-dirs.dirs and "Starred" is not there either. Quite a mystery......
-
Admin almost 5 yearsProbably this is stored in the tracker database. I have tracker disabled and accordingly, the star function does not work for me: if I "star" a file, it does not appear in the Starred folder.
-
Admin almost 5 yearsThis is the API wiki.gnome.org/Projects/Tracker/Documentation
-
-
i9pp0 almost 5 yearsThanks for the very detailed answer. Are you on 19.04? I don't have an on/off switch for search in Nautilus
-
i9pp0 almost 5 yearsIf the feature only works on dirs tracked by tracker, is there a way to add dirs to tracker?
-
i9pp0 almost 5 yearsStrange, I have only "preferences" which gives me 3 options in the "search and preview" tab, and no switch. They are: on this computer only, all locations, never.
-
DK Bose almost 5 yearsI think I may have misunderstood you and what you want. The Search feature I'm talking about is in Settings which should be an icon in your launcher, not in Nautilus. I did not make any changes to the Nautilus preferences. I cropped out the Launcher to make the image I uploaded smaller.
-
DK Bose almost 5 yearsI added additional information on starring additional folders. I will be away for about eight hours. Do leave a comment if you have any feedback.
-
eric_kernfeld over 2 yearsDoes tracker track things recursively? Meaning, if
~/Desktop
is added, can I star~/Desktop/foo/bar/baz
? Or do I need to add~/Desktop/foo/bar/
to starbaz
?