build: Install keybindings relative to our datadír

It is a good practice to install files relative to our own variables

https://www.bassi.io/articles/2018/03/15/pkg-config-and-paths/

and it is required on systems like NixOS.

---

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1194
This commit is contained in:
Jan Tojnar 2020-04-09 22:25:32 +02:00 committed by Florian Müllner
parent 9f1ad5d86d
commit e240f7ea59

View File

@ -72,7 +72,7 @@ systemduserunitdir = join_paths(prefix, 'lib', 'systemd', 'user')
keybindings_dep = dependency('gnome-keybindings', required: false) keybindings_dep = dependency('gnome-keybindings', required: false)
if keybindings_dep.found() if keybindings_dep.found()
keysdir = keybindings_dep.get_pkgconfig_variable('keysdir') keysdir = keybindings_dep.get_pkgconfig_variable('keysdir', define_variable: ['datadir', datadir])
else else
keysdir = join_paths(datadir, 'gnome-control-center', 'keybindings') keysdir = join_paths(datadir, 'gnome-control-center', 'keybindings')
endif endif