summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2019-11-27 16:46:49 +0100
committerRay Strode <halfline@gmail.com>2020-05-06 13:30:19 +0000
commit2fc52ced9c1ba22d14a6c4dbe03a13eaa5cb1c68 (patch)
tree93ee5bfe68a7a06c7bc586a0214c8356bd04c33c /data
parent95e35ac67dce81ea0b52c563b123f17b0d863d9b (diff)
downloadgnome-session-2fc52ced9c1ba22d14a6c4dbe03a13eaa5cb1c68.tar.gz
data: Add drop-in to configure launched applications
Both gnome-shell and g-s-d will start putting launched applications into transient scopes. As these scopes will be prefixed with gnome-launched-, we can set defaults by installing an appropriate drop-in. This allows us to bind them to graphical-session.target and lower their stop timeout. See gnome-shell!863 and gnome-settings-daemon!147
Diffstat (limited to 'data')
-rw-r--r--data/gnome-launched-override.scope.conf6
-rw-r--r--data/meson.build6
2 files changed, 12 insertions, 0 deletions
diff --git a/data/gnome-launched-override.scope.conf b/data/gnome-launched-override.scope.conf
new file mode 100644
index 00000000..810bf239
--- /dev/null
+++ b/data/gnome-launched-override.scope.conf
@@ -0,0 +1,6 @@
+[Unit]
+CollectMode=inactive-or-failed
+PartOf=graphical-session.target
+
+[Scope]
+TimeoutStopSec=5s
diff --git a/data/meson.build b/data/meson.build
index 62f32880..3ae6f245 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -133,6 +133,12 @@ if enable_systemd_session
systemd_target,
install_dir: systemd_userunitdir
)
+
+ install_data(
+ 'gnome-launched-override.scope.conf',
+ rename: 'override.conf',
+ install_dir : join_paths(systemd_userunitdir, 'gnome-launched-.scope.d')
+ )
endif
data = files('hardware-compatibility')