diff options
author | 2019-07-22 23:26:40 +0300 | |
---|---|---|
committer | 2019-07-25 20:58:34 +0000 | |
commit | 63ced87df20d656b8cdb485aa69e23943f82c574 (patch) | |
tree | ea604e2e36b9017fcf878ec74027b4caad20bf4d /meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service | |
parent | 27f73fc39198f807d019fe1a47571ec8da727b42 (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>
(cherry picked from commit af1c6967f09a51c600742de6e299255ff07b4a47)
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.service | 5 |
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 |