Skip to content

meson.build: Add support for local non-root install

Daniel van Vugt requested to merge vanvugt/gnome-shell:fix-install-c into master

If configured with meson --prefix ~/foo then it's likely the user will be running ninja install as non-root. This is ideal for development but will fail if dependency('gnome-keybindings', required: false) is found, because that's almost certainly in /usr/share where the user can't install to.

So check if the keybindings directory is writable and if not then skip it, instead of failing the whole ninja install.

Fixes: #399 (closed)

Alternative solutions: !142 (closed), !144 (closed)

Edited by Daniel van Vugt

Merge request reports