You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched open and closed issues for duplicates.
Describe the bug
The notification server does not use the application icon when the notification is sent from a daemon process:
Expected behavior
The notification server should use the Icon defined in the *.desktop file of the daemon application.
Possible root cause
The deamon is a GLib.Application with a *.desktop file stored in /etc/xdg/autostart/com.github.marbetschar.time-limit-daemon.desktop. It contains the following configuration:
[Desktop Entry]
Name=Time Limit Daemon
Comment=Notify when time is up
Exec=/usr/libexec/com.github.marbetschar.time-limit-daemon
Icon=com.github.marbetschar.time-limit
Terminal=false
Type=Application
Categories=System;
OnlyShowIn=Pantheon;
NoDisplay=true
X-GNOME-AutoRestart=true
X-GNOME-Autostart-Phase=Applications
X-GNOME-UsesNotifications=true
Furthermore the DesktopAppInfo itself uses the app_id to retrieve the desktop configuration file. And - according to the docs - reads the path information from the XDG_DATA_HOME and XDG_DATA_DIRS environment variables:
GIO is looking for a desktop file with this name in the applications subdirectories of the XDG data directories (i.e. the directories specified in the XDG_DATA_HOME and XDG_DATA_DIRS environment variables). GIO also supports the prefix-to-subdirectory mapping that is described in the Menu Spec (i.e. a desktop id of kde-foo.desktop will match /usr/share/applications/kde/foo.desktop).
However, If I print those environment variables the /etc/xdg/autostart directory does not appear. If I'm on the right track, this causes the notification icon of daemon apps to be never shown:
This reverts commit a6d20d5.
Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
Co-authored-by: Jeremy Wootten <jeremy@elementaryos.org>
Co-authored-by: Marco Betschart <email@marco.betschart.name>
Prerequisites
Describe the bug
The notification server does not use the application icon when the notification is sent from a daemon process:
Expected behavior
The notification server should use the
Icon
defined in the*.desktop
file of the daemon application.Possible root cause
The deamon is a
GLib.Application
with a *.desktop file stored in/etc/xdg/autostart/com.github.marbetschar.time-limit-daemon.desktop
. It contains the following configuration:From what I understood, the notification server uses the
DesktopAppInfo
to retrieve theapp_icon
.Furthermore the
DesktopAppInfo
itself uses theapp_id
to retrieve the desktop configuration file. And - according to the docs - reads the path information from theXDG_DATA_HOME
andXDG_DATA_DIRS
environment variables:However, If I print those environment variables the
/etc/xdg/autostart
directory does not appear. If I'm on the right track, this causes the notification icon of daemon apps to be never shown:Platform Information
elementary OS 6 Odin Daily.
The text was updated successfully, but these errors were encountered: