mirror of
https://gitlab.com/adhami3310/Impression.git
synced 2025-10-06 00:32:46 +02:00
Merge branch 'dbus-activatable' into 'main'
Add D-Bus service file See merge request adhami3310/Impression!91
This commit is contained in:
@@ -9,6 +9,7 @@ Type=Application
|
||||
Categories=GTK;GNOME;Utility;System;DiscBurning;
|
||||
Keywords=usb;flash;writer;bootable;drive;iso;img;disk;image
|
||||
StartupNotify=true
|
||||
DBusActivatable=true
|
||||
X-GNOME-UsesNotifications=true
|
||||
# Translators: Do NOT translate or transliterate this text (these are enum types)!
|
||||
MimeType=application/x-iso9660-image;application/x-raw-disk-image;application/x-cd-image;application/x-xz;
|
3
data/io.gitlab.adhami3310.Impression.service.in
Normal file
3
data/io.gitlab.adhami3310.Impression.service.in
Normal file
@@ -0,0 +1,3 @@
|
||||
[D-BUS Service]
|
||||
Name=@app-id@
|
||||
Exec=@bindir@/impression --gapplication-service
|
@@ -75,4 +75,16 @@ if glib_compile_schemas.found()
|
||||
'--strict', '--dry-run', meson.current_build_dir()
|
||||
],
|
||||
)
|
||||
endif
|
||||
endif
|
||||
|
||||
# D-Bus service file
|
||||
service_conf = configuration_data()
|
||||
service_conf.set('app-id', application_id)
|
||||
service_conf.set('bindir', bindir)
|
||||
configure_file(
|
||||
input: '@0@.service.in'.format(base_id),
|
||||
output: '@0@.service'.format(application_id),
|
||||
configuration: service_conf,
|
||||
install: true,
|
||||
install_dir: datadir / 'dbus-1' / 'services'
|
||||
)
|
||||
|
Reference in New Issue
Block a user