summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-07-22 23:26:40 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-07-24 22:20:02 +0000
commitaf1c6967f09a51c600742de6e299255ff07b4a47 (patch)
tree21728ffc9603eeda68bb41a8f59ffbd163fa1f37 /meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service
parent07af9fef1e30e5220a940c2c7e19e4bc50b9b456 (diff)
recipes-multimedia: lightmediascanner: switch from user dbus session to system
To avoid multiple instances of lightmediascanner from being created it should run only once in the system dbus session. Bug-AGL: SPEC-2655 Change-Id: I6c9510926f82ec9eb5625d63d08998a145504227 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service')
-rw-r--r--meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service b/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service
index 3b8a6d361..b75e19e25 100644
--- a/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service
+++ b/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service
@@ -5,8 +5,9 @@ Description=Lightmediascanner (LMS)
Type=dbus
BusName=org.lightmediascanner
UMask=0077
-ExecStart=/usr/bin/lightmediascannerd --startup-scan --db-path=/run/user/%U/usrshr/lightmediascannerd.db --directory=/media --directory=%h/Music --directory=%h/Videos
+SmackProcessLabel=User::App::agl-service-mediascanner
+ExecStart=/usr/bin/lightmediascannerd --startup-scan --db-path=/run/user/%U/usrshr/lightmediascannerd.db --directory=/media --directory=/home/0/Music --directory=/home/0/Videos
[Install]
-WantedBy=default.target
+WantedBy=multi-user.target
Alias=dbus-org.lightmediascanner.service