diff options
author | Mihai Fufezan <[email protected]> | 2024-11-03 14:42:20 +0200 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2024-11-03 15:01:58 +0200 |
commit | 4a6773920602148e54d6384e83375ed3dd9c9a10 (patch) | |
tree | 270f389dbeb32dcee6a370321931a27c7ed8a5f1 | |
parent | 17ed05f13f9fdf1fda51ab9570d0796c9c03b50a (diff) | |
download | Hyprland-4a6773920602148e54d6384e83375ed3dd9c9a10.tar.gz Hyprland-4a6773920602148e54d6384e83375ed3dd9c9a10.zip |
systemd/meson.build: install targets
-rw-r--r-- | systemd/meson.build | 33 |
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( + '[email protected]', + 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 +) |