mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 20:21:54 -07:00
Systemd fixes
Fix installation path, install the service only if the systemd option is enabled
This commit is contained in:
committed by
Mihai Fufezan
parent
3c0605c68e
commit
29e7dc6428
@@ -7,9 +7,11 @@ install_data(
|
||||
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: join_paths(get_option('libdir'), 'systemd/user') )
|
||||
install_dir: user_unit_dir )
|
||||
|
Reference in New Issue
Block a user