diff options
author | Benjamin Berg <bberg@redhat.com> | 2019-12-17 16:00:40 +0100 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2020-08-10 18:14:27 +0000 |
commit | c4a72a0aac2967b1bbdeafc7ccb940afd1c22d3e (patch) | |
tree | 54c72ba621db1122fb217460582e64ebe7ea4a76 /data/meson.build | |
parent | dc10790e850e507fedfe64d3449cbbb2f5d146f6 (diff) | |
download | gdm-c4a72a0aac2967b1bbdeafc7ccb940afd1c22d3e.tar.gz |
data: Install systemd specification for gnome-login session
GDM needs to ship the systemd definition for the custom GNOME session it
starts.
Diffstat (limited to 'data/meson.build')
-rw-r--r-- | data/meson.build | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build index 02353422..b24f7c0b 100644 --- a/data/meson.build +++ b/data/meson.build @@ -150,6 +150,13 @@ else systemd_systemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir') endif +if get_option('systemduserunitdir') != '' + systemd_userunitdir = get_option('systemduserunitdir') +else + systemd_userunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir', + define_variable: ['prefix', get_option('prefix')]) +endif + configure_file( input: 'gdm.service.in', output: '@BASENAME@', @@ -158,6 +165,12 @@ configure_file( format: 'cmake' ) +install_data( + 'session.conf', + rename: join_paths('gnome-session@gnome-login.target.d', 'session.conf'), + install_dir: systemd_userunitdir, +) + # XSession if get_option('gdm-xsession') configure_file( |