diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meson.build b/meson.build index bb3e4f49..fbd9752a 100644 --- a/meson.build +++ b/meson.build | |||
@@ -263,7 +263,10 @@ if get_option('bash-completions') | |||
263 | 'completions/bash/swaymsg', | 263 | 'completions/bash/swaymsg', |
264 | ) | 264 | ) |
265 | if bash_comp.found() | 265 | if bash_comp.found() |
266 | bash_install_dir = bash_comp.get_pkgconfig_variable('completionsdir') | 266 | bash_install_dir = bash_comp.get_pkgconfig_variable( |
267 | 'completionsdir', | ||
268 | define_variable: ['datadir', datadir] | ||
269 | ) | ||
267 | else | 270 | else |
268 | bash_install_dir = join_paths(datadir, 'bash-completion', 'completions') | 271 | bash_install_dir = join_paths(datadir, 'bash-completion', 'completions') |
269 | endif | 272 | endif |
@@ -278,7 +281,10 @@ if get_option('fish-completions') | |||
278 | 'completions/fish/swaynag.fish', | 281 | 'completions/fish/swaynag.fish', |
279 | ) | 282 | ) |
280 | if fish_comp.found() | 283 | if fish_comp.found() |
281 | fish_install_dir = fish_comp.get_pkgconfig_variable('completionsdir') | 284 | fish_install_dir = fish_comp.get_pkgconfig_variable( |
285 | 'completionsdir', | ||
286 | define_variable: ['datadir', datadir] | ||
287 | ) | ||
282 | else | 288 | else |
283 | fish_install_dir = join_paths(datadir, 'fish', 'vendor_completions.d') | 289 | fish_install_dir = join_paths(datadir, 'fish', 'vendor_completions.d') |
284 | endif | 290 | endif |