xdg-dbus-proxy icon indicating copy to clipboard operation
xdg-dbus-proxy copied to clipboard

Handle renaming of StatusNotifierItem object when needed (?)

Open MatMaul opened this issue 4 years ago • 2 comments

First let me say that I don't know if this is feasible because I lack enough knowledge of D-Bus to be able to say so.

StatusNotifierItem registered by applications uses the PID followed by a number (usually handle incrementally by the app) to define the name of the StatusNotifierItem to register, per the spec. Unfortunately it doesn't map well with Flatpak applications since they are PID-namespaced and their PID is often a single low digit, so the names will likely clash quite often on system using a lot of Flatpak applications with tray. Adding to that the need of owning the whole org.kde.* namespace to be able to do so, it seems like a rather bad situation.

Would it be possible to rename StatusNotifierItem objects on the fly when they are created, keep a mapping and forward the requests/responses on this object accordingly ? We could just use the PID of the dbus-proxy itself for example, or something like that.

Or any other idea to improve this situation ?

Thanks.

MatMaul avatar May 08 '20 16:05 MatMaul

it seems like a rather bad situation.

The bad situation really needs to be fixed at the source.

matthiasclasen avatar Jun 07 '23 20:06 matthiasclasen

it was fixed by Qt. The fix is part of KDE runtime. Apps should do this and this issue can be closed.

Electron apps may be still affected but it's their problem

Erick555 avatar Jun 08 '23 12:06 Erick555