Skip to content

Commit c63cdd9

Browse files
authored
Enable DBus Activation (#349)
1 parent 854c76b commit c63cdd9

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

data/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ install_data(
66
rename: meson.project_name() + '.gschema.xml'
77
)
88

9+
configure_file(
10+
input: 'settings.service.in',
11+
output: meson.project_name() + '.service',
12+
configuration: conf_data,
13+
install_dir: get_option('datadir') / 'dbus-1' / 'services',
14+
install: true
15+
)
16+
917
i18n.merge_file(
1018
input: 'settings.desktop.in',
1119
output: meson.project_name() + '.desktop',

data/settings.desktop.in

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
[Desktop Entry]
22
Type=Application
3+
34
Name=System Settings
45
Comment=Change system and user settings
5-
Exec=io.elementary.settings %u
6-
Icon=io.elementary.settings
7-
Terminal=false
8-
StartupNotify=true
96
Categories=GNOME;GTK;System;
107
Keywords=Center;Control;Panel;Preferences;System;
8+
9+
Icon=io.elementary.settings
10+
Exec=io.elementary.settings %u
11+
DBusActivatable=true
12+
SingleMainWindow=true
13+
StartupNotify=true
14+
Terminal=false
15+
1116
MimeType=x-scheme-handler/settings;

data/settings.service.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[D-BUS Service]
2+
Name=io.elementary.settings
3+
Exec=@BINDIR@/io.elementary.settings --gapplication-service

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ add_project_arguments([
1515
)
1616

1717
conf_data = configuration_data()
18+
conf_data.set('BINDIR', get_option('bindir'))
1819
conf_data.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
1920
conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
2021
conf_file = configure_file(

0 commit comments

Comments
 (0)