summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-08-28 14:46:57 +0200
committerBastien Nocera <hadess@hadess.net>2020-08-28 17:27:21 +0200
commit5946dadb795328f5bcd1043fa566fc62595fdfd7 (patch)
tree3f97c8264facd5f4800f77487446e2e6d9eaac76
parent0b57831656a8ece613961d7657f4b25c836dbedf (diff)
downloadtotem-5946dadb795328f5bcd1043fa566fc62595fdfd7.tar.gz
flatpak: And use new option to set the indexed dirs
Rather than patching the schemas file directly, use the new index directory options in tracker3-miners.
-rw-r--r--flatpak/0001-Only-index-Videos-and-the-root-of-the-Downloads-dir.patch34
-rw-r--r--flatpak/org.gnome.Totem.Devel.json8
2 files changed, 3 insertions, 39 deletions
diff --git a/flatpak/0001-Only-index-Videos-and-the-root-of-the-Downloads-dir.patch b/flatpak/0001-Only-index-Videos-and-the-root-of-the-Downloads-dir.patch
deleted file mode 100644
index 558f6383f..000000000
--- a/flatpak/0001-Only-index-Videos-and-the-root-of-the-Downloads-dir.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From edea769787bd9f483528158ce133e4977b7e799a Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess@hadess.net>
-Date: Mon, 24 Aug 2020 14:29:16 +0200
-Subject: [PATCH] Only index Videos and the root of the Downloads dir
-
----
- data/org.freedesktop.Tracker.Miner.Files.gschema.xml | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/data/org.freedesktop.Tracker.Miner.Files.gschema.xml b/data/org.freedesktop.Tracker.Miner.Files.gschema.xml
-index 30f1c6e1c..0eaf3df34 100644
---- a/data/org.freedesktop.Tracker.Miner.Files.gschema.xml
-+++ b/data/org.freedesktop.Tracker.Miner.Files.gschema.xml
-@@ -106,7 +106,7 @@ Boston, MA 02110-1301, USA.
-
- See /etc/xdg/user-dirs.defaults and $HOME/.config/user-dirs.default
- </description>
-- <default>[ '&amp;DESKTOP', '&amp;DOCUMENTS', '&amp;MUSIC', '&amp;PICTURES', '&amp;VIDEOS' ]</default>
-+ <default>[ '&amp;VIDEOS' ]</default>
- </key>
-
- <key name="index-single-directories" type="as">
-@@ -120,7 +120,7 @@ Boston, MA 02110-1301, USA.
-
- See /etc/xdg/user-dirs.defaults and $HOME/.config/user-dirs.default
- </description>
-- <default>[ '$HOME', '&amp;DOWNLOAD' ]</default>
-+ <default>[ '&amp;DOWNLOAD' ]</default>
- </key>
-
- <key name="index-applications" type="b">
---
-2.26.2
-
diff --git a/flatpak/org.gnome.Totem.Devel.json b/flatpak/org.gnome.Totem.Devel.json
index f90e3b7e1..c6c0f36d1 100644
--- a/flatpak/org.gnome.Totem.Devel.json
+++ b/flatpak/org.gnome.Totem.Devel.json
@@ -169,16 +169,14 @@
"-Dsystemd_user_services=false",
"-Dwriteback=false",
"-Ddomain_prefix=org.gnome.Totem.Devel",
- "-Dminer_fs_cache_location=$XDG_CACHE_HOME/totem/miner/files"
+ "-Dminer_fs_cache_location=$XDG_CACHE_HOME/totem/miner/files",
+ "-Ddefault_index_recursive_dirs=['&VIDEOS']",
+ "-Ddefault_index_single_dirs=['&DOWNLOAD']"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/tracker-miners.git"
- },
- {
- "type": "patch",
- "path": "0001-Only-index-Videos-and-the-root-of-the-Downloads-dir.patch"
}
]
},