The GNOME "Music" app says it searches my Music folder (e.g. it says this in the message you see when the directory is empty).

However it does not follow symbolic links inside ~/Music/ to other directories.

I already have a hierachy of music files. I can't point ~/Music to the root of my hierarchy, because it includes duplicates (different codecs). Nor can I point it at a single sub-directory that contains all the files I want, without using symlinks.

Is there a way to support the existing hierarchy, that doesn't involve writing a script to copy gigabytes of music files?



GNOME Music does not index the ~/Music directory directly.

It uses the shared GNOME indexer, which is called tracker. GNOME lets you configure this in Settings -> Search -> Files. (Select Files and click the cog icon). The dialog shows your Places (xdg dirs like ~/Music), Bookmarks, and Other. You can disable searching in individual Places, enable searching any of your bookmarked folders, and/or manually add folders in the Other section.

This allows you to add an arbitrary set of folders to be indexed for music. Assuming you don't also need it to be a different set of folders than what the file search will index.

tracker status and tracker info can be used to check the current status of the index.

tracker appears happy to index files outside your home directory, but GNOME Music does not seem to pick them up. That can be defeated by adding symlinks from your home directory.

It looks like album art is cached in some weird fashion. If Music has seen an album before, it may remember the album cover, even if the files you added this time don't include any album art. ("There are only two hard things in Computer Science...")

GNOME Music can also overlook an album in some circumstances, so you may have to remove ~/.local/share/gnome-music to force Music to rescan.

tracker does not rescan files when it is newly granted permission to access them. tracker index --file ~/Music does not seem reliable in this situation either, but to trigger a rescan you can just move those files in and out of a temporary directory. Thankfully tracker seems able to process files in a reasonable amount of time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.