sway/systemd/meson.build
Дамјан Георгиевски 510aafca75 systemd --user support files
* adds a sway-session.target that binds to graphical-session.target
  (see man systemd.special)
* also adds a 10-systemd script that should (must?) be included from sway
  that starts imports the sway environment variables into the systemd
  --user instance, and then starts sway-session.target

The idea is that, any --user units that are wanted by either
sway-session.target or graphical-session.target will be started when
sway runs, and will have the correct environment from sway too.
2019-01-22 00:23:01 +01:00

15 lines
398 B
Meson

systemd_dep = dependency('systemd')
if systemd_dep.found()
systemd_units = files(
'sway-session.target',
)
user_units_dir = systemd_dep.get_pkgconfig_variable('systemduserunitdir')
install_data(systemd_units, install_dir: user_units_dir)
sway_systemd_scripts = files(
'10-systemd',
)
install_data(sway_systemd_scripts, install_dir: sysconfdir + '/sway/config.d')
endif