Skip to content

Avalonia.Labs.Notifications invalid App ID Linux #136

Description

@Toamikel

Notifications work fine on Windows, but fail on Linux (testing Debian 13).
The Logs show:
Error from gnome-shell: GDBus.Error:org.gtk.Notifications.Error.InvalidApp: The app by ID "" could not be found

Monitoring dbus using: dbus-monitor "path='/org/gtk/Notifications',interface='org.gtk.Notifications'"
shows the following:

method call time=1772327444.338097 sender=:1.85 -> destination=:1.31 serial=35185 path=/org/gtk/Notifications; interface=org.gtk.Notifications; member=AddNotification
string ""
string "1"
array [
dict entry(
string "title"
variant string ""
)
dict entry(
string "body"
variant string "notification message"
)
dict entry(
string "priority"
variant string "normal"
)
]

I cannot find a way to get the string "" to contain the application ID.

When running my app with JetBrains Rider i get:
string "jetbrains-rider-cd87789c-1f7a-4075-93c5-61d439f2eaa6"
but notifications still do not show as "jetbrains-rider-cd87789c-1f7a-4075-93c5-61d439f2eaa6" is an invalid app.

I tried setting the application Name in multiple locations.
I've created a .desktop file that works but don't appear to enable notifications.

I'm not sure if I'm doing something wrong, but I do not see a way to set the application ID for notifications.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions