mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge pull request #460 from gdamjan/master
service file: allow for waybar installed in different prefix
This commit is contained in:
commit
db74a46d7b
13
meson.build
13
meson.build
@ -64,10 +64,19 @@ libudev = dependency('libudev', required: get_option('libudev'))
|
|||||||
libmpdclient = dependency('libmpdclient', required: get_option('mpd'))
|
libmpdclient = dependency('libmpdclient', required: get_option('mpd'))
|
||||||
systemd = dependency('systemd', required: get_option('systemd'))
|
systemd = dependency('systemd', required: get_option('systemd'))
|
||||||
|
|
||||||
|
prefix = get_option('prefix')
|
||||||
|
conf_data = configuration_data()
|
||||||
|
conf_data.set('prefix', prefix)
|
||||||
|
|
||||||
if systemd.found()
|
if systemd.found()
|
||||||
user_units_dir = systemd.get_pkgconfig_variable('systemduserunitdir')
|
user_units_dir = systemd.get_pkgconfig_variable('systemduserunitdir')
|
||||||
install_data('./resources/waybar.service',
|
|
||||||
install_dir: user_units_dir)
|
configure_file(
|
||||||
|
configuration: conf_data,
|
||||||
|
input: './resources/waybar.service.in',
|
||||||
|
output: '@BASENAME@',
|
||||||
|
install_dir: user_units_dir
|
||||||
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
src_files = files(
|
src_files = files(
|
||||||
|
@ -6,7 +6,7 @@ PartOf=wayland-session.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=dbus
|
Type=dbus
|
||||||
BusName=fr.arouillard.waybar
|
BusName=fr.arouillard.waybar
|
||||||
ExecStart=/usr/bin/waybar
|
ExecStart=@prefix@/bin/waybar
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=wayland-session.target
|
WantedBy=wayland-session.target
|
Loading…
Reference in New Issue
Block a user