From 4acf3ad9136d89f4aaea7ea9b14e07b2ededfb6f Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 2 Dec 2018 21:42:56 +0100 Subject: Update .desktop and .profile --- src/meson.build | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/meson.build') diff --git a/src/meson.build b/src/meson.build index 209fb5c..c539fff 100644 --- a/src/meson.build +++ b/src/meson.build @@ -49,9 +49,16 @@ poi = executable(get_option('poiName'), install: true, 'wallet/wallet.cpp', 'wallet/wallet.h'] ) -# install .desktop file and firejail profile -if ['linux', 'freebsd', 'netbsd', 'dragonflybsd'].contains(host_machine.system()) +# install .desktop file and firejail profile for systems in this array +if ['linux'].contains(host_machine.system()) + conf = configuration_data() + conf.set('exec_poi', join_paths(get_option('prefix'), get_option('bindir'), get_option('poiName'))) + conf.set('profile_path', join_paths(get_option('prefix'), get_option('libdir'), 'smolbote', 'poi.profile')) + install_data('../data/poi.svg', install_dir: join_paths(get_option('datadir'), 'icons/hicolor/scalable/apps')) - install_data('../linux/poi.desktop', install_dir: join_paths(get_option('datadir'), 'applications')) - install_data('../data/poi.profile', install_dir: join_paths(get_option('libdir'), 'smolbote')) + install_data('../linux/poi.profile', install_dir: join_paths(get_option('libdir'), 'smolbote')) + + configure_file(input: '../linux/poi.desktop.in', output: 'poi.desktop', configuration: conf, install_dir: join_paths(get_option('datadir'), 'applications')) + configure_file(input: '../linux/poi_ps.desktop.in', output: 'poi_ps.desktop', configuration: conf, install_dir: join_paths(get_option('datadir'), 'applications')) + endif -- cgit v1.2.1