[tracker/sam/tracker-2.3-no-autostart] Disable tracker-store autostart by default




commit 5f261b621955b211bc75202a68a4fb6f936ac160
Author: Sam Thursfield <sam afuera me uk>
Date:   Thu Sep 3 01:24:48 2020 +0200

    Disable tracker-store autostart by default
    
    Use of Tracker 2.x is deprecated, but the old behaviour can be restored
    by passing `-Dautostart=true` at configure time.

 meson_options.txt             |  2 ++
 src/tracker-store/meson.build | 12 ++++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index fa1ce51dc..d5005da0d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -16,6 +16,8 @@ option('stemmer', type: 'feature', value: 'auto',
 option('unicode_support', type: 'combo', choices: ['icu', 'unistring', 'auto'], value: 'auto',
        description: 'Unicode support library to use')
 
+option('autostart', type: 'boolean', value: false,
+       description: 'Install .desktop file into $sysconfdir/xdg/autostart so tracker-store starts along with 
desktop session')
 option('bash_completion', type: 'string', value: 'yes',
        description: 'Directory to install Bash completion files (or "yes" for default directory, "no" to 
disable installation')
 option('dbus_services', type: 'string', value: '',
diff --git a/src/tracker-store/meson.build b/src/tracker-store/meson.build
index a6c3d0972..65690bb48 100644
--- a/src/tracker-store/meson.build
+++ b/src/tracker-store/meson.build
@@ -47,13 +47,17 @@ dbus_service_file = configure_file(
     install: true,
     install_dir: dbus_services_dir)
 
-i18n.merge_file('tracker-store-desktop-file',
+desktop_file = i18n.merge_file('tracker-store-desktop-file',
     type: 'desktop',
     input: 'tracker-store.desktop.in',
     output: 'tracker-store.desktop',
-    po_dir: po_subdir,
-    install: true,
-    install_dir: join_paths(get_option('sysconfdir'), 'xdg/autostart'))
+    po_dir: po_subdir)
+
+if get_option('autostart')
+  install_data(desktop_file,
+      install: true,
+      install_dir: join_paths(get_option('sysconfdir'), 'xdg/autostart'))
+endif
 
 if install_systemd_user_services
   configure_file(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]