Does not start on boot
The application does not start when booting the device for me. I'm not entirely sure why it does not work, but comparing your code with this MR, which introduced running at startup for Flare (and which works), there are a few differences which may cause the bug:
- The application is not dbus activatable in the desktop file and does not have a
servicefile. - You use a custom CLI argument
--daemoninstead of--gapplication-service, which setsApplicationFlags::IS_SERVICEinapplication.flags().
I'm running Notify on the PinePhone, running Phosh and Arch/Danctnix.
It's strange though, because I explicitly set notify --daemon as the command to execute on boot, through the ashpd background portal.
Anyway, thanks, I will try testing a bit
For anyone else discovering this issue:
There is a temporary workaround for this. Just create the file ~/.config/autostart/com.ranfdev.Notify.desktop with the following content (assuming you are running the Flatpak):
[Desktop Entry]
Type=Application
Name=com.ranfdev.Notify
Exec=flatpak run --command=notify com.ranfdev.Notify --daemon
X-Flatpak=com.ranfdev.Notify