Xpra: Ticket #1647: Forwarding original app name in notifications

Please consider supporting forwarding original notification app name (the field represented by notify-send -a ).

Currently all forwarded notifications have 'Xpra' as their application name. Might be handy if it would read $ORIGINAL_APPNAME (on $REMOTE_HOSTNAME), akin how window managers name remote windows.

Mon, 18 Sep 2017 13:17:44 GMT - Antoine Martin: owner changed

The application name is already forwarded to the platform specific notification API.

Please provide more details as per wiki/ReportingBugs

Mon, 18 Sep 2017 13:48:05 GMT - psycho_zs: component changed

Debian testing, Xpra 2.1.2, displaying notifications via dunst.

Testing with notify-send -a apptest test test If run locally, notification is received with: application: apptest summary: test body: test

If run in remote session, notification is received with: application: Xpra summary: test body: test

Notifications from other apps in remote session are also displayed as coming from 'Xpra'.

Test application name is mentioned in client debug log:

2017-09-18 16:34:34,104 _process_notify_show(['notify_show', 'unix:abstract=/tmp/dbus-swCyiCvbB0,guid=67f6a91b10b2c27f09998bb559bf73e3', 9, 'apptest', 0, '', 'test', 'test', -1]) notifier=<xpra.client.notifications.dbus_notifier.DBUS_Notifier object at 0x7f35f27a5490>, server_supports_notifications=True
2017-09-18 16:34:34,106 notification reply: (dbus.UInt32(73L),)

So, problem might be on the client side.

Mon, 18 Sep 2017 13:54:41 GMT - Antoine Martin:

Does r16909 fix things?

Mon, 18 Sep 2017 14:07:40 GMT - psycho_zs:

Yes, it works! How about app_name + " (via Xpra)" (or mentioning remote hostname)?

Mon, 18 Sep 2017 14:13:29 GMT - Antoine Martin: status changed; resolution set

Try r16910.

ie: you can change the string using

XPRA_NOTIFICATION_APP_NAME="Hello %s (via Xpra" xpra attach ...

We can't use the remote host name because it isn't available to the notification backends at present.

Mon, 18 Sep 2017 14:25:30 GMT - psycho_zs:

It works, thanks!

Sat, 23 Jan 2021 05:30:01 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1647