add a autostart file

parent f666b4a9
...@@ -48,6 +48,7 @@ install -vD %SOURCE2 .cargo/config.toml ...@@ -48,6 +48,7 @@ install -vD %SOURCE2 .cargo/config.toml
%_desktopdir/%xdg_name.desktop %_desktopdir/%xdg_name.desktop
%_iconsdir/hicolor/*/apps/*.svg %_iconsdir/hicolor/*/apps/*.svg
%_datadir/metainfo/%xdg_name.metainfo.xml %_datadir/metainfo/%xdg_name.metainfo.xml
%_sysconfdir/xdg/autostart/%name.desktop
%_datadir/%name/ %_datadir/%name/
%changelog %changelog
......
...@@ -53,6 +53,25 @@ if desktop_file_validate.found() ...@@ -53,6 +53,25 @@ if desktop_file_validate.found()
) )
endif endif
# autostart
autostartdir = join_paths(get_option('sysconfdir'), 'xdg', 'autostart')
i18n.merge_file(
input: configure_file(
input: '@0@.desktop.in.in'.format(meson.project_name()),
output: '@BASENAME@',
configuration: {
'bindir': bindir,
},
),
output: '@BASENAME@',
type: 'desktop',
po_dir: podir,
install: true,
install_dir: autostartdir,
)
# Resources # Resources
resources = gnome.compile_resources( resources = gnome.compile_resources(
'resources', 'resources',
......
[Desktop Entry]
Name=Ximper Welcome autostart
Type=Application
Exec=@bindir@/ximper-welcome --autostarted
NoDisplay=true
StartupNotify=true
OnlyShowIn=GNOME;Hyprland;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment