We have moved to a new Sailfish OS Forum. Please start new discussions there.

Tired of album art filling your photo gallery? [released]

Tracked by Jolla (In release)

asked 2018-06-28 14:55:26 +0300

Moo-Crumpus gravatar image

updated 2018-09-12 23:44:40 +0300

ApB gravatar image

I'm annoyed because the tracker in the picture gallery shows me all covers of the music albums. They are available as AlbumArtSmall.jpg, AlbumArtBig.jpg, Folder.jpg or cover.jpg. I don't want to delete them, especially since I synchronize the entire music storage between my mobile phone, desktop PC and my NAS using resilio sync. If I put them out on the phone, they'd be gone on the other devices.

As nemo using a terminal do

 gsettings list-recursively | grep -i org.freedesktop.Tracker | sort | uniq

Find the line org.freedesktop.Tracker.Miner.Files ignored-directories-with-content. It will tell you, which files are ignored by tracker. Mine reads like this:

gsettings set org.freedesktop.Tracker.Miner.Files ignored-files "['*~', '*.o', '*.la', '*.lo', '*.loT', '*.in', '*.csproj', '*.m4', '*.rej', '*.gmo', '*.orig', '*.pc', '*.omf' , '*.aux', '*.tmp', '*.po', '*.vmdk', '*.vm*', '*.nvram', '*.part', '*.rcore', ' *.lzo', 'autom4te', 'conftest', 'confstat', 'Makefile', 'SCCS', 'ltmain.sh', 'li btool', 'config.status', 'confdefs.h', 'configure', '#*#', '~$*.doc?', '~$*.dot? ', '~$*.xls?', '~$*.xlt?', '~$*.xlam', '~$*.ppt?', '~$*.pot?', '~$*.ppam', '~$*. ppsm', '~$*.ppsx', '~$*.vsd?', '~$*.vss?', '~$*.vst?', '*.desktop', '*.directory']"

I will add AlbumArt*.*, Folder.* and cover.* to be ignored from now on. I use placeholders for the filetypes, as Folder.* to match Folder.jpg, Folder.png - I guess I will never use media files like this that should be found by tracker. You may want to use Folder.jpg and so on to be more precise then I am. PS: as far as I know, you can't add a single value to the string of to be i´gnored files. You have to give the command the full value, i.e. the old part supplemented by the new one. This is done by gsettings set as follows:

 gsettings set org.freedesktop.Tracker.Miner.Files ignored-files "['*~', '*.o', '*.la', '*.lo', '*.loT', '*.in', '*.csproj', '*.m4', '*.rej', '*.gmo', '*.orig', '*.pc', '*.omf' , '*.aux', '*.tmp', '*.po', '*.vmdk', '*.vm*', '*.nvram', '*.part', '*.rcore', ' *.lzo', 'autom4te', 'conftest', 'confstat', 'Makefile', 'SCCS', 'ltmain.sh', 'li btool', 'config.status', 'confdefs.h', 'configure', '#*#', '~$*.doc?', '~$*.dot? ', '~$*.xls?', '~$*.xlt?', '~$*.xlam', '~$*.ppt?', '~$*.pot?', '~$*.ppam', '~$*. ppsm', '~$*.ppsx', '~$*.vsd?', '~$*.vss?', '~$*.vst?', '*.desktop', '*.directory', 'Folder.*', 'cover.*', 'AlbumArt*.*']"

Use Sailfish Utilities to reset trackers database.

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by rozgwi
close date 2018-11-14 23:45:50.408385



just create .nomedia inside album art dir

coderus ( 2018-06-28 15:33:37 +0300 )edit

I don't want to contaminate my nas and all the other places I sync my music that don't know anything about .nomedia

A whitelist based tracker folders would be even better.

Nrde ( 2018-06-28 16:33:12 +0300 )edit

^what coderus said ^

No need to go the long way round, unless you like the scenic route ;)

Spam Hunter ( 2018-06-28 16:56:03 +0300 )edit

I love this, though I'd worry about possible clashing with other types of documents for Folder and even cover. Not so much AlbumArt though. What do you think about:

'Folder.jp*', 'Folder.png', 'Folder.gif', 'cover.jp*', 'cover.png', 'cover.gif', 'AlbumArt*.*'
Andy Branson ( 2018-06-29 13:41:08 +0300 )edit

Would do the job in a more precise way.

Moo-Crumpus ( 2018-07-02 11:04:37 +0300 )edit

5 Answers

Sort by » oldest newest most voted

answered 2018-07-02 12:18:38 +0300

jovirkku gravatar image

There will be a fix for this issue in the upcoming 2.2.1 release.

edit flag offensive delete publish link more



^ lolz ^


Spam Hunter ( 2018-07-02 12:48:03 +0300 )edit

@Edz - again, another unnecessary comment here from you. Just use upvote. Are you points-searching or what?

jimjamz ( 2018-09-09 02:26:51 +0300 )edit

answered 2018-06-28 19:15:37 +0300

Moo-Crumpus gravatar image

updated 2018-06-28 19:18:12 +0300

Know what? The weakness of your .nomedia solution is the assumption that there is ONE directory for Album Art. But this is not usual. Usually the providers I know simply place cover images together with the music files in the same folder.

Therefore, your solution is weak, and this is why I suppose your .nomedia solution is a weak one: it is limited, conditional. Using gsettings and enhance trackers config is a general, unconditionally working one.

Therefore, afaik, gsettings is the way to go ONCE in the life of your phone.

edit flag offensive delete publish link more



There used to be a patch to do these settings from settings ui.

naytsyrhc ( 2018-06-28 22:27:15 +0300 )edit

Patch from virgi, I don't know if it works/is maintained or not, as always, try/use at your own peril;


Spam Hunter ( 2018-06-29 11:18:55 +0300 )edit

answered 2018-09-05 12:59:40 +0300

Moo-Crumpus gravatar image

Jolla mentions this thread as solved Issue by update 2.2.1 Nurmonjoki. See https://together.jolla.com/question/187284/release-notes-221-nurmonjoki/

edit flag offensive delete publish link more


And it works (once I reset my tracker DB), after 4 years finally no more album art in my gallery. \o/

null ( 2018-09-05 14:19:05 +0300 )edit

answered 2018-06-29 11:10:32 +0300

ApB gravatar image


Can we have that in one of the next releases. Seems easy and is something we've been asking for a long time.

edit flag offensive delete publish link more



looks like this was recently patched into tracker: https://git.merproject.org/mer-core/tracker/commit/198ea02c8843a1b244fac6d35805da41012b7dae

r0kk3rz ( 2018-07-02 11:31:57 +0300 )edit

Actually I'd like to have album art in the gallery but in a separate folder. I find it occasionally useful. Though folders are currently present only in android's gallery...

butler ( 2018-07-06 12:27:12 +0300 )edit

answered 2018-09-12 22:34:18 +0300

ApB gravatar image

I rebooted and restarted the tracker. This doesn't work for me on J1.

I still see all the album art in the gallery. All the music is in the SD card in case it matters.

What gives?

edit flag offensive delete publish link more


You need to reset the tracker database first. See comment above by 'null'.

addydon ( 2018-09-13 10:04:37 +0300 )edit

@addydon i used the option in the utilities. No idea what to do other than that.

ApB ( 2018-09-13 11:11:18 +0300 )edit

Question tools



Asked: 2018-06-28 14:55:26 +0300

Seen: 1,452 times

Last updated: Sep 12 '18