69 lines
2.3 KiB
Diff
69 lines
2.3 KiB
Diff
|
From fea0d74ff155f05e9f1e8e0351562af6c7c15b3c Mon Sep 17 00:00:00 2001
|
||
|
From: Olivier Fourdan <ofourdan@redhat.com>
|
||
|
Date: Tue, 4 Mar 2025 16:21:30 +0100
|
||
|
Subject: [PATCH 1/2] search-app: Add systemd session files
|
||
|
|
||
|
The search appliance session would fail to start as a systemd session.
|
||
|
|
||
|
Add the required systemd plumbing to fix the search appliance session.
|
||
|
|
||
|
Part-of: <https://gitlab.gnome.org/GNOME/gnome-kiosk/-/merge_requests/66>
|
||
|
|
||
|
(cherry picked from commit a40ac8d8dc132d9c94506419158ec4034eaaf2c8)
|
||
|
---
|
||
|
meson.build | 12 ++++++++++++
|
||
|
.../systemd/org.gnome.Kiosk.SearchApp.service.in | 8 ++++++++
|
||
|
search-app/systemd/session.conf | 3 +++
|
||
|
3 files changed, 23 insertions(+)
|
||
|
create mode 100644 search-app/systemd/org.gnome.Kiosk.SearchApp.service.in
|
||
|
create mode 100644 search-app/systemd/session.conf
|
||
|
|
||
|
diff --git a/meson.build b/meson.build
|
||
|
index fb9a76d..2024b76 100644
|
||
|
--- a/meson.build
|
||
|
+++ b/meson.build
|
||
|
@@ -350,5 +350,17 @@ i18n.merge_file(
|
||
|
type: 'desktop'
|
||
|
)
|
||
|
|
||
|
+configure_file(
|
||
|
+ input: 'search-app/systemd/org.gnome.Kiosk.SearchApp.service.in',
|
||
|
+ output: '@BASENAME@',
|
||
|
+ configuration: systemd_service_config_data,
|
||
|
+ install_dir: systemd_user_unit_dir
|
||
|
+)
|
||
|
+
|
||
|
+kiosk_search_appliance_systemd_target_dir = join_paths(systemd_user_unit_dir, 'gnome-session@org.gnome.Kiosk.SearchApp.target.d')
|
||
|
+install_data('search-app/systemd/session.conf',
|
||
|
+ install_dir: kiosk_search_appliance_systemd_target_dir
|
||
|
+)
|
||
|
+
|
||
|
test('check-format', find_program('scripts/check-format.sh'))
|
||
|
|
||
|
diff --git a/search-app/systemd/org.gnome.Kiosk.SearchApp.service.in b/search-app/systemd/org.gnome.Kiosk.SearchApp.service.in
|
||
|
new file mode 100644
|
||
|
index 0000000..29ddcd8
|
||
|
--- /dev/null
|
||
|
+++ b/search-app/systemd/org.gnome.Kiosk.SearchApp.service.in
|
||
|
@@ -0,0 +1,8 @@
|
||
|
+[Unit]
|
||
|
+Description=Kiosk Search Appliance
|
||
|
+BindsTo=gnome-session.target
|
||
|
+After=gnome-session.target
|
||
|
+
|
||
|
+[Service]
|
||
|
+ExecStart=@bindir@/firefox --kiosk --private-window --new-instance https://www.google.com
|
||
|
+Restart=always
|
||
|
diff --git a/search-app/systemd/session.conf b/search-app/systemd/session.conf
|
||
|
new file mode 100644
|
||
|
index 0000000..1ab41da
|
||
|
--- /dev/null
|
||
|
+++ b/search-app/systemd/session.conf
|
||
|
@@ -0,0 +1,3 @@
|
||
|
+[Unit]
|
||
|
+Requires=org.gnome.Kiosk.target
|
||
|
+Requires=org.gnome.Kiosk.SearchApp.service
|
||
|
--
|
||
|
2.48.1
|
||
|
|