eonpatapon / mpDris2

MPRIS V2.1 support for mpd
GNU General Public License v3.0
211 stars 46 forks source link

Ability to change DesktopEntry #83

Open muffinmad opened 7 years ago

muffinmad commented 7 years ago

It looks like DesktopEntry is used by clients to launch proper application. For example, your awesome GS extension does that. So there must be the option to specify DesktopEntry, not just mpdris2 which leads to launch of another instance of mpdris2.

grawity commented 7 years ago

DesktopEntry is also used for other things, such as selecting the displayed name & icon. Changing it would mean you'd end up with two entries for the same app (with one of them being mpdris2 in disguise).

muffinmad commented 7 years ago

@grawity I have the following in my /usr/bin/mpDris2:

    __root_props = {
...
        "DesktopEntry": ("ncmpcpp", None),
...
    }

Clicking on mediaplayer extension and on GS media notification works fine. Where can I see two entries for the same app?