Install a service file for activating the datastore upon demand
This commit is contained in:
parent
cc39ef169f
commit
cb38a2c1fa
1
services/datastore/.gitignore
vendored
Normal file
1
services/datastore/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
org.laptop.sugar.DataStore.service
|
@ -1,3 +1,10 @@
|
|||||||
|
servicedir = $(datadir)/dbus-1/services
|
||||||
|
service_in_files = org.laptop.sugar.DataStore.service.in
|
||||||
|
service_DATA = $(service_in_files:.service.in=.service)
|
||||||
|
|
||||||
|
$(service_DATA): $(service_in_files) Makefile
|
||||||
|
@sed -e "s|\@bindir\@|$(bindir)|" $< > $@
|
||||||
|
|
||||||
sugardir = $(pkgdatadir)/services/data-store
|
sugardir = $(pkgdatadir)/services/data-store
|
||||||
sugar_PYTHON = \
|
sugar_PYTHON = \
|
||||||
__init__.py \
|
__init__.py \
|
||||||
@ -6,4 +13,4 @@ sugar_PYTHON = \
|
|||||||
|
|
||||||
bin_SCRIPTS = sugar-data-store
|
bin_SCRIPTS = sugar-data-store
|
||||||
|
|
||||||
EXTRA_DIST = $(bin_SCRIPTS)
|
EXTRA_DIST = $(bin_SCRIPTS) org.laptop.sugar.DataStore.service.in
|
||||||
|
4
services/datastore/org.laptop.sugar.DataStore.service.in
Normal file
4
services/datastore/org.laptop.sugar.DataStore.service.in
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[D-BUS Service]
|
||||||
|
Name = org.laptop.sugar.DataStore
|
||||||
|
Exec = @bindir@/sugar-data-store
|
||||||
|
|
Loading…
Reference in New Issue
Block a user