aboutsummaryrefslogtreecommitdiffhomepage
path: root/systemd/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/meson.build')
-rw-r--r--systemd/meson.build33
1 files changed, 25 insertions, 8 deletions
diff --git a/systemd/meson.build b/systemd/meson.build
index 2cd5312a..67c08842 100644
--- a/systemd/meson.build
+++ b/systemd/meson.build
@@ -1,17 +1,34 @@
-install_data(
- 'hyprland-systemd.desktop',
- install_dir: join_paths(get_option('datadir'), 'wayland-sessions'),
- install_tag: 'runtime',
-)
+user_unit_dir = systemd.get_variable(pkgconfig: 'systemduserunitdir',
+ pkgconfig_define: ['prefix', get_option('prefix')])
+
+install_data(
+ 'hyprland-systemd.desktop',
+ install_dir: join_paths(get_option('datadir'), 'wayland-sessions'),
+ install_tag: 'runtime',
+)
+install_data(
+ 'hyprland-session.target',
+ install_dir: user_unit_dir,
+ install_tag: 'runtime',
+)
+install_data(
+ install_dir: user_unit_dir,
+ install_tag: 'runtime',
+)
+install_data(
+ 'hyprland-session-pre.target',
+ install_dir: user_unit_dir,
+ install_tag: 'runtime',
+)
conf_data = configuration_data()
conf_data.set('PREFIX', get_option('prefix'))
conf_data.set('BINDIR', get_option('bindir'))
-user_unit_dir = systemd.get_variable(pkgconfig: 'systemduserunitdir',
- pkgconfig_define: ['prefix', get_option('prefix')])
configure_file(
configuration: conf_data,
input: 'hyprland-session.service.in',
output: '@BASENAME@',
- install_dir: user_unit_dir )
+ install_dir: user_unit_dir
+)