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

A full featured MPRIS indicator button extension for GNOME Shell 3.38+
https://extensions.gnome.org/extension/1379/mpris-indicator-button/
GNU General Public License v3.0
159 stars 21 forks source link

Add functionali exclude player #50

Closed webmastak closed 3 years ago

webmastak commented 3 years ago

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.

JasonLG1979 commented 3 years ago

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