diff options
author | Zeeshan Ali <zeenix@collabora.co.uk> | 2018-09-24 09:54:20 +0200 |
---|---|---|
committer | Zeeshan Ali <zeenix@collabora.co.uk> | 2018-09-24 09:54:20 +0200 |
commit | 8556d0edf685424086c191ab2c6ec344c84cbdda (patch) | |
tree | a59d84a90885f9e36ad0013711eb607afa0ac53a | |
parent | 29e619c0e265e4b1e866d1f2b1028e22a4776f47 (diff) | |
download | geoclue-8556d0edf685424086c191ab2c6ec344c84cbdda.tar.gz |
build: Install demo agent to autostart directory too
We were doing this already but forgot to port this from autotools to meson.
-rw-r--r-- | demo/meson.build | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/demo/meson.build b/demo/meson.build index 61df493..284b734 100644 --- a/demo/meson.build +++ b/demo/meson.build @@ -48,10 +48,14 @@ if get_option('demo-agent') desktop_in = configure_file(output: 'geoclue-demo-agent.desktop.in', input: 'geoclue-demo-agent.desktop.in.in', configuration: desktop_conf) - i18n.merge_file(output: 'geoclue-demo-agent.desktop', - input: desktop_in, - type: 'desktop', - po_dir: '../po', - install: true, - install_dir: desktop_dir) + desktop_file = i18n.merge_file(output: 'geoclue-demo-agent.desktop', + input: desktop_in, + type: 'desktop', + po_dir: '../po', + install: true, + install_dir: desktop_dir) + # Also install in the autostart directory. + autostart_dir = get_option('sysconfdir') + '/xdg/autostart' + install_data(desktop_file.full_path(), + install_dir: autostart_dir) endif |