JasonLG1979 / gnome-shell-extension-mpris-indicator-button

A full featured MPRIS indicator button extension for GNOME Shell 3.38+

Home Page:https://extensions.gnome.org/extension/1379/mpris-indicator-button/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add functionali exclude player

webmastak opened this issue · comments

Please add functionali exclude player for developers!!!!!

Let it be in code like this._ignoredPlayers = ['olivia']; developers will take advantage of it, and ordinary users won't even know about it.

Extension mpris-indicator-button with the olivia player works disgustingly. If you do not enable MPRIS, then the mpris-indicator-button is not active but there is no control from the multimedia keys.

I tried to hack bus.js through this._ignoredPlayers = []; replace on this._ignoredPlayers = ['olivia'];
But I didn't succeed.

Although judging by this codeif (busName.startsWith(MPRIS_PREFIX) && !this._ignoredPlayers.includes(this._stripInstanceNumber(busName))) {
Where !this._ignoredPlayers.includes(this._stripInstanceNumber(busName)) should work.

Please add functionali exclude player for developers!!!!!

Extension mpris-indicator-button with the olivia player works disgustingly. If you do not enable MPRIS, then the mpris-indicator-button is not active but there is no control from the multimedia keys.

No. Tell them to fix their bugs.

I tried to hack bus.js through this._ignoredPlayers = []; replace on this._ignoredPlayers = ['olivia'];
But I didn't succeed.

Although judging by this codeif (busName.startsWith(MPRIS_PREFIX) && !this._ignoredPlayers.includes(this._stripInstanceNumber(busName))) {
Where !this._ignoredPlayers.includes(this._stripInstanceNumber(busName)) should work.

olivia is the app's name not it's bus name. The bus name starts with org.mpris.MediaPlayer2. and generally contains the app's name and maybe an instance value. Try org.mpris.MediaPlayer2.olivia