Closed marbetschar closed 3 years ago
Please revert this. We shouldn't be loading desktop files from the autostart folder. This folder is only for desktop files that should be launched with the session (and they don't even need to be fully formed desktop files). Hence why this isn't in the standard lookup path for DesktopAppInfo
.
If something (a daemon or otherwise) wants to send notifications, it should install a desktop file to an XDG applications path (e.g. /usr/share/applications
). If it should be hidden from the applications menu because it's a daemon, use the NoDisplay
key.
@davidmhewitt what about having the daemon autostarted? If I understand this correctly the desktop file of the daemon is placed in /usr/share/applications
and we are creating a symlink to this file which is stored in /etc/xdg/autostart
- right?
I'm not sure that apps can add their desktop files to auto start anymore. It looks like there is an interface in the background portal to request this: https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.impl.portal.Background
This PR adds a code change which loads a *.desktop file from
/etc/xdg/autostart
if available. This is needed for daemon processes which are automatically started in the background and are sending notifications to the user.Notification displayed before change
Notification displayed after change