Snap namespace not properly used all the times
G_MESSAGES_DEBUG=all SNAP=/snap/telegram-desktop/current/ SNAP_NAME=telegram-desktop notify-send -a "telegramdesktop" -h "string:desktop-hint:telegramdesktop.desktop" -i file:///usr/share/presage/presage.png fooo
(notify-send:1006765): libnotify-DEBUG: 16:18:01.898: Trying to look at file 'file:///usr/share/presage/presage.png' in the '/snap/telegram-desktop/current/' prefix.
(notify-send:1006765): libnotify-DEBUG: 16:18:01.898: Icon updated in snap environment: 'file:///usr/share/presage/presage.png' -> 'telegram-desktop_file:///usr/share/presage/presage.png'
The uri part isn't handled properly.
At the same time, it should support desktop-entry
by adding the ${SNAP_NAME}_
prefix.