Skip to content

Commit

Permalink
systemd/meson.build: install targets
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Nov 3, 2024
1 parent 17ed05f commit 4a67739
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions systemd/meson.build
Original file line number Diff line number Diff line change
@@ -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
)

0 comments on commit 4a67739

Please sign in to comment.