From 891f3da6e47edb0cd1c7600ae21c4c50057246e0 Mon Sep 17 00:00:00 2001 From: Gustavo Marques Date: Tue, 24 Jun 2025 14:45:08 -0300 Subject: [PATCH 1/2] Enable DBus Activation --- data/meson.build | 8 ++++++++ data/settings.desktop.in | 1 + data/settings.service.in | 3 +++ meson.build | 1 + 4 files changed, 13 insertions(+) create mode 100644 data/settings.service.in diff --git a/data/meson.build b/data/meson.build index d2e9c217..3cea6964 100644 --- a/data/meson.build +++ b/data/meson.build @@ -6,6 +6,14 @@ install_data( rename: meson.project_name() + '.gschema.xml' ) +configure_file( + input: 'settings.service.in', + output: meson.project_name() + '.service', + configuration: conf_data, + install_dir: get_option('datadir') / 'dbus-1' / 'services', + install: true +) + i18n.merge_file( input: 'settings.desktop.in', output: meson.project_name() + '.desktop', diff --git a/data/settings.desktop.in b/data/settings.desktop.in index 02907e94..e071e55f 100644 --- a/data/settings.desktop.in +++ b/data/settings.desktop.in @@ -3,6 +3,7 @@ Type=Application Name=System Settings Comment=Change system and user settings Exec=io.elementary.settings %u +DBusActivatable=true Icon=io.elementary.settings Terminal=false StartupNotify=true diff --git a/data/settings.service.in b/data/settings.service.in new file mode 100644 index 00000000..9aa6d131 --- /dev/null +++ b/data/settings.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=io.elementary.settings +Exec=@BINDIR@/io.elementary.settings --gapplication-service diff --git a/meson.build b/meson.build index 153d0cc6..65a8c5ce 100644 --- a/meson.build +++ b/meson.build @@ -15,6 +15,7 @@ add_project_arguments([ ) conf_data = configuration_data() +conf_data.set('BINDIR', get_option('bindir')) conf_data.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir'))) conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name()) conf_file = configure_file( From bb3d61496f268b28180f94a255d573d63f4a2704 Mon Sep 17 00:00:00 2001 From: Gustavo Marques Date: Tue, 24 Jun 2025 14:46:13 -0300 Subject: [PATCH 2/2] update .desktop file --- data/settings.desktop.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/data/settings.desktop.in b/data/settings.desktop.in index e071e55f..8146a005 100644 --- a/data/settings.desktop.in +++ b/data/settings.desktop.in @@ -1,12 +1,16 @@ [Desktop Entry] Type=Application + Name=System Settings Comment=Change system and user settings +Categories=GNOME;GTK;System; +Keywords=Center;Control;Panel;Preferences;System; + +Icon=io.elementary.settings Exec=io.elementary.settings %u DBusActivatable=true -Icon=io.elementary.settings -Terminal=false +SingleMainWindow=true StartupNotify=true -Categories=GNOME;GTK;System; -Keywords=Center;Control;Panel;Preferences;System; +Terminal=false + MimeType=x-scheme-handler/settings;