Notify icon indicating copy to clipboard operation
Notify copied to clipboard

Does not start on boot

Open Schmiddiii opened this issue 10 months ago • 2 comments

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 service file.
  • You use a custom CLI argument --daemon instead of --gapplication-service, which sets ApplicationFlags::IS_SERVICE in application.flags().

I'm running Notify on the PinePhone, running Phosh and Arch/Danctnix.

Schmiddiii avatar Feb 27 '25 13:02 Schmiddiii

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

ranfdev avatar Mar 01 '25 08:03 ranfdev

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

Schmiddiii avatar Mar 13 '25 11:03 Schmiddiii