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

How to avoid adding all images from sdcard to gallery ? [answered]

asked 2014-07-28 20:57:37 +0300

barmeier gravatar image

updated 2014-07-30 11:11:53 +0300

jiit gravatar image

Hi,

after downloading thousands of navigational map tiles to my sdcard my gallery is unusable because all map data is shown in the gallery :(

How can I prevent this ?

Ciao Matze

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by chemist
close date 2014-07-29 22:09:50.316838

3 Answers

Sort by » oldest newest most voted
8

answered 2014-07-28 22:49:43 +0300

I still find my answer the best, and also forget about it, no need to re apply after update: a simple "touch backup.metadata" in a folder and you can forget about it.

edit flag offensive delete publish link more

Comments

Indeed, very simple, I'm upvoting your answer there :)

Sthocs ( 2014-07-29 01:54:22 +0300 )edit

Will this remove the images from the gallery ?

barmeier ( 2014-07-29 08:55:38 +0300 )edit

@barmeier images from gallery and sounds from media player. I downloaded a lot of things on SD card for OSMAND~ and with this method, the folder doesn't get indexed.

magullo ( 2014-07-29 10:35:43 +0300 )edit

YES! your answer is the best ! Thanks a lot !

barmeier ( 2014-07-29 12:06:11 +0300 )edit
2

answered 2014-07-28 21:57:14 +0300

chemist gravatar image

updated 2014-07-29 18:24:47 +0300

By separating your contents https://together.jolla.com/question/40802/how-to-format-your-usd-card-to-btrfs-and-share-space-with-android/

There are several other ideas how to achieve this

  • the tracker modifications as said in the other answer
  • flag file backup.metadata
  • hidden folders .yourfolder
  • bind mounts

for me, btrfs sub-volumes and proper mounting with taking into account what is mounted when (systemd) is the only valid option as it is like fire-and-forget, only thing is you might need to apply it again after a software upgrade but that is the same for modified tracker entries iirc - what also comes to mind is that I never ever have to set folders in android apps by hand, not even after a factory-reset

edit flag offensive delete publish link more

Comments

1

Though it's not that clean solution i would prefer a flag-file (.nomedia i.e.) to prevent tracker from indexing special folders. - Just my 2ct. -

Moth ( 2014-07-28 22:55:23 +0300 )edit
1

answered 2014-07-28 21:25:47 +0300

pata gravatar image

updated 2014-07-28 21:34:57 +0300

Tracker is backgroud process that index content of both internal and sdcard storage. You need to control that process to prevent some location to show up in Gallery/Media Player.

Check instructions for that from thread: https://together.jolla.com/question/5935/how-to-blacklist-directories-from-being-indexed-by-tracker/

edit flag offensive delete publish link more

Question tools

Follow
3 followers

Stats

Asked: 2014-07-28 20:57:37 +0300

Seen: 649 times

Last updated: Jul 29 '14