1- i18n.merge_file(
2- input : ' autostart.desktop' ,
3- output : meson .project_name() + ' .desktop' ,
4- po_dir : meson .project_source_root() / ' po' ,
5- type : ' desktop' ,
6- install : true ,
7- install_dir : datadir / ' applications'
8- )
9-
10- fs = import (' fs' )
11- meson .add_install_script(
12- symlink,
13- datadir / ' applications' / meson .project_name() + ' .desktop' ,
14- (fs.is_absolute(sysconfdir) ? sysconfdir : (prefix / sysconfdir)) / ' xdg' / ' autostart' / meson .project_name() + ' .desktop' ,
15- )
16-
171dbus_dep = dependency (' dbus-1' )
182dbus_interfaces_dir = dbus_dep.get_variable (' interfaces_dir' , pkgconfig_define : [' datadir' , datadir])
193
@@ -63,6 +47,7 @@ if systemd_system_unit_dir != 'no' and systemd_user_unit_dir != 'no'
6347
6448 service_config = configuration_data ()
6549 service_config.set(' busctl_path' , busctl_path)
50+ service_config.set(' bindir' , bindir)
6651
6752 configure_file (
6853 input : meson .project_name() + ' .check-for-firmware-updates.service.in' ,
@@ -87,4 +72,11 @@ if systemd_system_unit_dir != 'no' and systemd_user_unit_dir != 'no'
8772 meson .project_name() + ' .system-update.timer' ,
8873 install_dir : systemd_user_unit_dir
8974 )
75+
76+ configure_file (
77+ input : meson .project_name() + ' .service.in' ,
78+ output : meson .project_name() + ' .service' ,
79+ configuration : service_config,
80+ install_dir : systemd_user_unit_dir
81+ )
9082endif
0 commit comments