Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media keys not working with Deezer #760

Closed
silvavelosa opened this issue Aug 3, 2021 · 23 comments
Closed

Media keys not working with Deezer #760

silvavelosa opened this issue Aug 3, 2021 · 23 comments
Assignees
Labels
type: bug Something is not working as expected or the documentation is incorrect.
Projects

Comments

@silvavelosa
Copy link

Before creating a new bug report

We recommend these actions first:

Basic information

We often need some basic information - refer to bug reporting guidelines
for help.

  • Nuvola Player version: 4.23.0 (0-g3ab9c9a)
  • The streaming service you use and its version: Deezer script 3.5.0 (0-gb1dd801)

Describe the bug

Since I updated this morning, the media keys stopped working.
I'm pretty sure the OS is sending them to nuvola, because when I close it it displays a 🚫 icon in the screen when I press any media key (because no application is listening to the media keys), but when I open it back the icon is not displayed anymore, so that indicates me that the player gets the key input, but has trouble applying the action in the web app.

@silvavelosa
Copy link
Author

Also, the on screen buttons in the media notification don't work either.... maybe something changed in the deezer webapp that broke the play/stop/next/back integration?

@silvavelosa
Copy link
Author

silvavelosa commented Aug 3, 2021

Looking at the current deezer app and script code, I think the selectors need to be updated.

This is the html I get in deezer:

<div class="player-controls">
	<ul class="svg-icon-group">
		<li class="svg-icon-group-item">
			<div class="popper-wrapper">
				<button class="svg-icon-group-btn" type="button" aria-label="Back">
					<svg viewBox="0 0 16 16" width="16" height="16" focusable="false" role="img" aria-hidden="true" class="sk__sc-1vdzswr-0 gHFJOr">
						<g>
							<path d="M15 0v16L2 8.802V16H1V0h1v7.198L15 0z"></path>
						</g>
					</svg>
				</button>
				<div class="popper" style="display: none;">
					<div class="popper-arrow"></div>
				</div>
			</div>
		</li>
		<li class="svg-icon-group-item"></li>
		<li class="svg-icon-group-item">
			<button class="svg-icon-group-btn is-highlight" type="button" aria-label="Play">
				<svg viewBox="0 0 24 24" width="24" height="24" focusable="false" role="img" aria-hidden="true" class="sk__sc-1vdzswr-0 gHFJOr">
					<g>
						<path d="m5 2 18 10L5 22V2z"></path>
					</g>
				</svg>
			</button>
		</li>
		<li class="svg-icon-group-item"></li>
		<li class="svg-icon-group-item">
			<div class="popper-wrapper">
				<button class="svg-icon-group-btn" type="button" aria-label="Next">
					<svg viewBox="0 0 16 16" width="16" height="16" focusable="false" role="img" aria-hidden="true" class="sk__sc-1vdzswr-0 gHFJOr">
						<g>
							<path d="M1 1v14l11-6.217V15h1V1h-1v6.217L1 1z"></path>
						</g>
					</svg>
				</button>
				<div class="popper" style="display: none;">
					<div class="popper-arrow"></div>
				</div>
			</div>
		</li>
	</ul>
</div>

but the script uses this selector:

if (button.firstElementChild.classList.contains('svg-icon-' + name)) return button

So I'm guessing deezer obfuscated the svg-icon-[name] class from the inner svg, and now aria-label should be used to select the button.

I'm creating a PR with this change, but not sure how to test it, since I use the official flatpack build.

@jiri-janousek
Copy link
Member

Hello @silvavelosa, thanks for reporting the issue. You may test your fix with Nuvola ADK.

@jiri-janousek jiri-janousek added the type: bug Something is not working as expected or the documentation is incorrect. label Aug 4, 2021
@jiri-janousek jiri-janousek added this to Backlog in Nuvola via automation Aug 4, 2021
@jiri-janousek jiri-janousek moved this from Backlog to In progress in Nuvola Aug 4, 2021
@jiri-janousek
Copy link
Member

However, using aria-label is not possible as the value depends on localization. It's different in French, for examle.

@jiri-janousek jiri-janousek self-assigned this Aug 14, 2021
jiri-janousek added a commit to tiliado/nuvola-app-deezer that referenced this issue Aug 14, 2021
@jiri-janousek
Copy link
Member

Hello @silvavelosa. Thanks for reporting your issue. Could you check whether the latest flatpak build with Deezer script 3.5.1 (1-ge2671db) fixes the problem? Thanks.

@jiri-janousek jiri-janousek moved this from In progress to Announce in Nuvola Aug 14, 2021
@bartlibert
Copy link

This worked for me with script 3.5.1, but it was broken again recently (must have been in the last month)

@4lyn
Copy link

4lyn commented Oct 19, 2021

Same here,
It worked when I started using Deezer a few month ago and stopped working a few weeks ago
Deezer script Version: 3.5.1
Nuvola Player Version 4.23.0

@bartlibert
Copy link

Some extra information: I think the issue goes further now, as also the track title, artist, playing status,... are not detected. If I understand it correctly, in that case the keys are always disabled, so there's the issue I guess.
image

@4lyn
Copy link

4lyn commented Oct 19, 2021

Indeed I have the same (null) on Song / Artist / Album ...

@jiri-janousek jiri-janousek moved this from Announce to Next in Nuvola Oct 19, 2021
@jiri-janousek
Copy link
Member

Hello. Thanks for reporting the issue. I'll look at it at the weekend.

jiri-janousek added a commit to tiliado/nuvola-app-deezer that referenced this issue Oct 24, 2021
@jiri-janousek
Copy link
Member

Hello friends. Could you check whether the latest flatpak build with Deezer script 3.5.2 (2-g6a0dc26) fixes the problem? Thanks.

@jiri-janousek jiri-janousek moved this from Next to Announce in Nuvola Oct 24, 2021
@bartlibert
Copy link

Everything seems to work now. Only the "album" is still "(null)", but I guess this is normal as the album title is (at first sight) nowhere to be found on the deezer page.

@4lyn
Copy link

4lyn commented Oct 25, 2021

All the Song / Artist / Album infos are back ut media keys still not working on my side.
I'll try reboot sometime but it's strange since VLC is able to capture them. I did the Google Chrome eats multimedia keys just in case
Is there anything I can do for debugging ?

@jiri-janousek
Copy link
Member

@4lyn, what are your Linux distribution and desktop environment? Do you have Multimedia keys enabled in Nuvola Preferences?

@jiri-janousek jiri-janousek moved this from Announce to In progress in Nuvola Oct 28, 2021
@4lyn
Copy link

4lyn commented Oct 28, 2021

Linux Mint 19.3 (==>> Ubuntu 18.04.3 LTS)
xfce 4.14.1

Do you have Multimedia keys enabled in Nuvola Preferences?

I have this enabled : https://nuvola.tiliado.eu/docs/4/media_keys.html
I access it via the Deezer player preferences

@jiri-janousek
Copy link
Member

Could you visit the Bug reporting guidelines and provide a debugging log while playing music and pressing multimedia keys?

@jiri-janousek jiri-janousek added the need info Assignee needs more information to work on this ticket. label Nov 2, 2021
@4lyn
Copy link

4lyn commented Nov 3, 2021

This is what comes out when I hit play on the webapp

inputs: 3
Runner: [DEBUG Δ18s977357us Nuvola] AudioClient.vala:88: Input 24.489 playback sd_generic 4208
Runner: [DEBUG Δ000116us Nuvola] AudioClient.vala:88: Input 24.490 playback sd_dummy 4211
Runner: [DEBUG Δ000026us Nuvola] AudioClient.vala:88: Input 24.501 Playback nuvolaruntime 2
Runner: [DEBUG Δ000019us Nuvola] AudioClient.vala:206: Global mute: false
[1103/115818.751769:ERROR:bus.cc(554)] Failed to get the ownership of org.mpris.MediaPlayer2.chromium.instance2: org.freedesktop.DBus.Error.ServiceUnknown
[1103/115818.819268:ERROR:object_proxy.cc(619)] Failed to call method: org.freedesktop.PowerManagement.Inhibit.Inhibit: object_path= /org/freedesktop/PowerManagement/Inhibit: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[1103/115818.819305:ERROR:power_save_blocker_x11.cc(330)] No response to Inhibit() request!
Runner: [DEBUG Δ206611us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-play
Runner: [DEBUG Δ000545us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-pause
Runner: [DEBUG Δ000037us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-stop

When I press multimedia keys nothing shows.

Then stop after a few seconds

Runner: [DEBUG Δ12s578977us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-play
Runner: [DEBUG Δ000424us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-pause
Runner: [DEBUG Δ000072us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-stop
[1103/115833.412461:ERROR:object_proxy.cc(619)] Failed to call method: org.freedesktop.PowerManagement.Inhibit.UnInhibit: object_path= /org/freedesktop/PowerManagement/Inhibit: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[1103/115833.412553:ERROR:power_save_blocker_x11.cc(403)] No response to Uninhibit() request!

This is what comes out if I start VLC on top (after stop). There the multimedia keys works

inputs: 3
Runner: [DEBUG Δ21s241692us Nuvola] AudioClient.vala:88: Input 24.489 playback sd_generic 4208
Runner: [DEBUG Δ000039us Nuvola] AudioClient.vala:88: Input 24.490 playback sd_dummy 4211
Runner: [DEBUG Δ000024us Nuvola] AudioClient.vala:88: Input 24.502 audio stream vlc 16329
Runner: [DEBUG Δ000031us Nuvola] AudioClient.vala:206: Global mute: false
Runner: [DEBUG Δ01s622399us DioriteGlib] DuplexChannel.vala:502: Channel (2) has been closed.
Runner: [DEBUG Δ000256us DioriteGlib] DuplexChannel.vala:328: The channel has already been closed

This is the starting sequence

Runner: [DEBUG Δ005885us  GVFS] org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

Runner: [DEBUG Δ001837us GLib-GIO] _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Runner: [DEBUG Δ000027us  GLib] setenv()/putenv() are not thread-safe and should not be used after threads are created
Runner: [DEBUG Δ008725us  GLib] unsetenv() is not thread-safe and should not be used after threads are created
Runner: [DEBUG Δ005007us Nuvola] AboutDialog.vala:54: Nuvola Player 4.23.0 (0-g3ab9c9a)
Runner: [DEBUG Δ000026us Nuvola] AboutDialog.vala:56: Deezer script 3.5.2 (2-g6a0dc26)
Runner: [DEBUG Δ000009us Nuvola] AboutDialog.vala:60: Diorite 4.23.0
Runner: [DEBUG Δ000033us Nuvola] AboutDialog.vala:62: Chromium 75.0.3770.100
Runner: [DEBUG Δ000011us Nuvola] AboutDialog.vala:63: ValaCEF 75.3770.16
Runner: [DEBUG Δ005205us  GLib] unsetenv() is not thread-safe and should not be used after threads are created
Runner: [DEBUG Δ041012us DioriteGtk] DesktopShell.vala:254: Shell: xfwm4 (null), CSD 0, appmenu 0, menubar 0
Runner: [DEBUG Δ000268us  GLib] setenv()/putenv() are not thread-safe and should not be used after threads are created
Runner: [DEBUG Δ036691us Nuvola] Connection.vala:124: Network Proxy: system settings
Runner: [DEBUG Δ005281us GLib-GIO] _g_io_module_get_default: Found default implementation portal (GProxyResolverPortal) for ‘gio-proxy-resolver’
Runner: [DEBUG Δ107356us GdkPixbuf] gdk_pixbuf_from_pixdata() called on:
Runner: [DEBUG Δ000017us GdkPixbuf] 	Encoding raw
Runner: [DEBUG Δ000005us GdkPixbuf] 	Dimensions: 14 x 14
Runner: [DEBUG Δ000005us GdkPixbuf] 	Rowstride: 56, Length: 808
Runner: [DEBUG Δ000004us GdkPixbuf] 	Copy pixels == false
Runner: [DEBUG Δ059019us Nuvola] AppRunnerController.vala:114: Scale factor: 1
Runner: [DEBUG Δ002519us CefGtk] WidevinePlugin.vala:15: Widevine path: /home/user/.var/app/eu.tiliado.NuvolaAppDeezer/data/nuvolaruntime/apps_data/deezer/widevine
Your system is broken: dlsym doesn't work! This has been reported to be caused by Nvidia's libGL. You should expect time related functions to misbehave. https://bugs.chromium.org/p/chromium/issues/detail?id=16800
Runner: [DEBUG Δ067405us DioriteGtk] Application.vala:226: XFCE session appeared: org.xfce.SessionManager, :1.6
Runner: [INFO Δ019660us CefGtk] WidevinePlugin.vala:27: WidevinePlugin is available: 0 (null)
Runner: [DEBUG Δ020309us Nuvola] GumroadLicense.vala:119: Purchased: 2021-10-19T12:18:58Z, expires: 2022-10-20T12:18:58Z.
Runner: [WARNING Δ000219us Nuvola] StartupWindow.vala:146: tiliado-account-message: Features Tier: ★ Premium
Runner: [INFO Δ026295us Nuvola] CefEngine.vala:301: Partially implemented: register_ipc_handlers()
Runner: [INFO Δ000132us CefGtk] WebView.vala:80: CEF rendering mode: CEF_GTK_RENDERING_MODE_WINDOWED
Runner: [INFO Δ021893us CefGtk] Client.vala:106: get_life_span_handler
Runner: [DEBUG Δ057148us Nuvola] GumroadLicense.vala:119: Purchased: 2021-10-19T12:18:58Z, expires: 2022-10-20T12:18:58Z.
[1103/140327.524379:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
Runner: [DEBUG Δ036070us CefGtk] WebViewWindowed.vala:65: allocation 0,1+1360,999 child_allocation 0,0+1360,999
Runner: [INFO Δ026186us CefGtk] WebView.vala:119: Renderer #1 created.
[1103/140327.599020:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
Worker: [DEBUG Δ006040us  GVFS] org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

Worker: [DEBUG Δ000195us GLib-GIO] _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Runner: [DEBUG Δ083588us Nuvola] CefEngine.vala:377: Init finished
Runner: [DEBUG Δ000372us Nuvola] WebWorker.vala:80: Cannot call ('Nuvola.actions.emit', <('ActionEnabledChanged', 'toggle-sidebar', false)>, false)
Runner: [DEBUG Δ000048us Nuvola] WebWorker.vala:80: Cannot call ('Nuvola.actions.emit', <('ActionEnabledChanged', 'go-forward', false)>, false)
Runner: [DEBUG Δ000038us Nuvola] WebWorker.vala:80: Cannot call ('Nuvola.actions.emit', <('ActionEnabledChanged', 'go-back', false)>, false)
Runner: [INFO Δ004169us Nuvola] Component.vala:82: Load tray_icon Tray Icon
Runner: [INFO Δ000023us Nuvola] Component.vala:134: Activate: tray_icon Tray Icon
Worker: [DEBUG Δ012819us Nuvola] CefRendererExtension.vala:137: Got JS context
Worker: [INFO Δ000039us CefGtk] RendererContext.vala:57: JS Context created 1
Runner: [CRITICAL Δ012219us Nuvola] nuvola_web_app_get_icon_pixbuf: assertion 'size > 0' failed
Runner: [CRITICAL Δ000039us Nuvola] Application will not function properly.
Runner: [WARNING Δ000017us Nuvola] TrayIcon.vala:136: Failed to load pixbuf for tray icon.
Runner: [DEBUG Δ000030us Nuvola] AppRunnerController.vala:712: Component tray_icon (Tray Icon) available=true, enabled=true
Runner: [INFO Δ000082us Nuvola] Component.vala:82: Load audio_tweaks Audio Tweaks
Runner: [INFO Δ000017us Nuvola] Component.vala:134: Activate: audio_tweaks Audio Tweaks
Runner: [DEBUG Δ000348us Nuvola] AppRunnerController.vala:712: Component audio_tweaks (Audio Tweaks) available=true, enabled=true
Runner: [DEBUG Δ000067us Nuvola] AppRunnerController.vala:712: Component unity_launcher (Extra Dock Actions) available=true, enabled=false
Runner: [DEBUG Δ000036us Nuvola] AppRunnerController.vala:712: Component notifications (Notifications) available=true, enabled=false
Runner: [INFO Δ000039us Nuvola] Component.vala:82: Load mediakeys Multimedia keys
Runner: [DEBUG Δ000016us Nuvola] AppRunnerController.vala:712: Component mediakeys (Multimedia keys) available=true, enabled=true
Runner: [DEBUG Δ000035us Nuvola] AppRunnerController.vala:712: Component scrobbler (Audio Scrobbling) available=true, enabled=false
Runner: [DEBUG Δ000034us Nuvola] AppRunnerController.vala:712: Component mpris (Media Player DBus Interface) available=true, enabled=false
Runner: [DEBUG Δ000036us Nuvola] AppRunnerController.vala:712: Component httpremotecontrol (Remote control over HTTP (experimental)) available=true, enabled=false
Runner: [DEBUG Δ000033us Nuvola] AppRunnerController.vala:712: Component lyrics (Lyrics) available=true, enabled=false
Runner: [INFO Δ000040us Nuvola] Component.vala:82: Load developer Developer's tools
Runner: [INFO Δ000016us Nuvola] Component.vala:134: Activate: developer Developer's tools
Runner: [DEBUG Δ013612us Nuvola] WebWorker.vala:80: Cannot call ('Nuvola.actions.emit', <('ActionEnabledChanged', 'toggle-sidebar', true)>, false)
Runner: [DEBUG Δ004127us Nuvola] WebWorker.vala:80: Cannot call ('Nuvola.actions.emit', <('ActionEnabledChanged', 'toggle-sidebar', true)>, false)
Runner: [DEBUG Δ000041us Nuvola] AppRunnerController.vala:712: Component developer (Developer's tools) available=true, enabled=true
Runner: [DEBUG Δ016874us Nuvola] CefEngine.vala:163: App Runner Initialized
Runner: [DEBUG Δ000139us Nuvola] CefEngine.vala:167: App Runner Ready
Runner: [DEBUG Δ008200us Nuvola] CefEngine.vala:380: Web Worker Ready
Runner: [DEBUG Δ000832us Nuvola] CefEngine.vala:580: Navigation: new window: false → false, uri: 'https://www.deezer.com/fr/playlist/7606267902' → 'https://www.deezer.com/fr/playlist/7606267902', approved: true, frame: (null), type: TT_EXPLICIT, user gesture: true
Runner: [DEBUG Δ001063us Nuvola] CefEngine.vala:487: Load started
Runner: [DEBUG Δ000596us Nuvola] WebAppWindow.vala:179: Sidebar position: 909
Runner: [DEBUG Δ001750us Nuvola] CefEngine.vala:487: Load started
Runner: [INFO Δ031642us Nuvola] Component.vala:134: Activate: mediakeys Multimedia keys
Runner: [DEBUG Δ003241us Nuvola] HeadphonesWatch.vala:47: Sink 0 alsa_output.pci-0000_00_1f.3.analog-stereo - Audio interne Stéréo analogique
Runner: [DEBUG Δ000048us Nuvola] HeadphonesWatch.vala:50: Sink 0 Port: analog-output-speaker: Haut-parleurs (priority 10000, available: unknown, headphones: no)
Runner: [DEBUG Δ000016us Nuvola] HeadphonesWatch.vala:50: Sink 0 Port: analog-output-headphones: Casque audio (priority 9000, available: no, headphones: yes)
Runner: [DEBUG Δ000012us Nuvola] HeadphonesWatch.vala:47: Sink 24 bluez_sink.CC_98_8B_56_F9_8C.a2dp_sink - WH-1000XM3
Runner: [DEBUG Δ000015us Nuvola] HeadphonesWatch.vala:50: Sink 24 Port: headset-output: Casque (priority 0, available: yes, headphones: no)
Runner: [INFO Δ229324us Nuvola] config.vala:223: Config saved to /home/user/.var/app/eu.tiliado.NuvolaAppDeezer/config/nuvolaruntime/apps_data/deezer/config.json
[1103/140328.392864:WARNING:keyring_util_linux.cc(77)] Could not load libgnome-keyring.so.0: libgnome-keyring.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
Worker: [DEBUG Δ007293us  GVFS] org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

Worker: [DEBUG Δ000211us GLib-GIO] _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Runner: [DEBUG Δ448340us Nuvola] CefEngine.vala:380: Web Worker Ready
Runner: [INFO Δ000663us CefGtk] WebView.vala:111: Console: https://www.deezer.com/fr/playlist/7606267902:0: The Content Security Policy directive 'upgrade-insecure-requests' is ignored when delivered in a report-only policy.
Worker: [DEBUG Δ006068us Nuvola] CefRendererExtension.vala:137: Got JS context
Worker: [INFO Δ006975us CefGtk] RendererContext.vala:57: JS Context created 1
Runner: [DEBUG Δ013291us Nuvola] CefEngine.vala:487: Load started
Worker: [DEBUG Δ781318us Nuvola] CefRendererExtension.vala:145: Lost JS context
Worker: [INFO Δ000721us CefGtk] RendererContext.vala:64: JS Context released: 1
Runner: [INFO Δ006978us CefGtk] WebView.vala:119: Renderer #1 created.
Runner: [DEBUG Δ204366us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-play
Runner: [DEBUG Δ000286us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-pause
Runner: [DEBUG Δ000056us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-stop
Runner: [DEBUG Δ000269us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-go-previous
Runner: [DEBUG Δ000222us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-go-next
Runner: [DEBUG Δ000659us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-seek
Runner: [INFO Δ043215us Nuvola] config.vala:223: Config saved to /home/user/.var/app/eu.tiliado.NuvolaAppDeezer/config/nuvolaruntime/apps_data/deezer/config.json
Runner: [INFO Δ01s059202us CefGtk] Client.vala:63: get_drag_handler
Runner: [DEBUG Δ264150us Nuvola] DeveloperSidebar.vala:203: Media player notify: artwork-location
Runner: [INFO Δ220379us CefGtk] WebView.vala:111: Console: https://www.deezer.com/fr/playlist/7606267902:0: Refused to execute script from 'https://pagead2.googlesyndication.com/pagead/conversion/988306579/?random=1635941009348&cv=9&fst=1635941009348&num=1&value=0&label=rswbCLrtmLoBEJO5odcD&guid=ON&resp=GooglemKTybQhCsO&u_h=1080&u_w=1920&u_ah=1047&u_aw=1920&u_cd=24&u_his=3&u_tz=0&u_java=false&u_nplug=2&u_nmime=2&gtm=Gar&sendb=1&ig=1&frm=0&url=https%3A%2F%2Fwww.deezer.com%2Ffr%2Fplaylist%2F7606267902&tiba=Playlist%20100%25%20Within%20Temptation%20%7C%20%C3%80%20%C3%A9couter%20sur%20Deezer&gcs=G101&gcd=G101&hn=www.googleadservices.com&bttype=purchase&async=1&rfmt=3&fmt=4' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Runner: [INFO Δ049844us CefGtk] WebView.vala:111: Console: https://www.deezer.com/fr/playlist/7606267902:0: The Content Security Policy directive 'upgrade-insecure-requests' is ignored when delivered in a report-only policy.
Runner: [DEBUG Δ282766us Nuvola] DeveloperSidebar.vala:203: Media player notify: artwork-location
Runner: [DEBUG Δ004882us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-play
Runner: [DEBUG Δ000387us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-go-next
Runner: [DEBUG Δ000513us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-seek
Runner: [DEBUG Δ02s007001us Nuvola] DeveloperSidebar.vala:203: Media player notify: artwork-location
Runner: [DEBUG Δ002223us Nuvola] DeveloperSidebar.vala:203: Media player notify: can-go-previous
Runner: [DEBUG Δ55s194964us DioriteGlib] DuplexChannel.vala:502: Channel (2) has been closed.
Runner: [DEBUG Δ000176us DioriteGlib] DuplexChannel.vala:328: The channel has already been closed

@jiri-janousek
Copy link
Member

Thanks @4lyn, could you post debugging output from Nuvola service process as well?

flatpak run --command=nuvola eu.tiliado.Nuvola --debug

@4lyn
Copy link

4lyn commented Nov 8, 2021

Here it is

Master: [DEBUG Δ026369us  GVFS] org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

Master: [DEBUG Δ007214us GLib-GIO] _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Master: [DEBUG Δ007149us  GLib] unsetenv() is not thread-safe and should not be used after threads are created
Master: [DEBUG Δ040536us  GLib] unsetenv() is not thread-safe and should not be used after threads are created
Master: [DEBUG Δ042824us DioriteGtk] DesktopShell.vala:254: Shell: xfwm4 (null), CSD 0, appmenu 0, menubar 0
Master: [DEBUG Δ000859us DioriteGtk] Application.vala:226: XFCE session appeared: org.xfce.SessionManager, :1.6
Master: [DEBUG Δ004656us  GLib] setenv()/putenv() are not thread-safe and should not be used after threads are created
Master: [DEBUG Δ000827us Nuvola] XKeyGrabber.vala:181: Obtained a X11 Window for the display ':99.0'.
Master: [DEBUG Δ001952us Nuvola] GumroadLicense.vala:119: Purchased: 2021-10-19T12:18:58Z, expires: 2022-10-20T12:18:58Z.
Master: [DEBUG Δ29s936972us Nuvola] DbusMaster.vala:44: Connection request: 'eu.tiliado.NuvolaAppDeezer' ':1.1769'
Master: [DEBUG Δ000024us Nuvola] MasterController.vala:281: Launch app runner for 'deezer': eu.tiliado.NuvolaAppDeezer :1.1769
Master: [DEBUG Δ001286us Nuvola] MasterController.vala:194: Connected to runner server for 'deezer'.
Master: [DEBUG Δ414036us Nuvola] MediaKeys.vala:151: GNOME settings daemon vanished: org.gnome.SettingsDaemon.MediaKeys
Master: [DEBUG Δ000140us Nuvola] MediaKeys.vala:151: GNOME settings daemon vanished: org.gnome.SettingsDaemon
Master: [DEBUG Δ000024us Nuvola] MediaKeys.vala:181: Grabbing media keys with X key grabber
Master: [DEBUG Δ001684us Nuvola] XKeyGrabber.vala:77: Grabbed AudioPause, count 1

@jiri-janousek
Copy link
Member

Hello @4lyn, are you sure the Nuvola service log is complete? It should look like this:

Master: [DEBUG Δ005409us  GVFS] org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

Master: [DEBUG Δ001676us GLib-GIO] _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
Master: [DEBUG Δ000687us  GLib] unsetenv() is not thread-safe and should not be used after threads are created
Gtk-Message: 23:22:49.870: Failed to load module "xapp-gtk3-module"
Master: [DEBUG Δ012997us  GLib] unsetenv() is not thread-safe and should not be used after threads are created
Master: [DEBUG Δ029915us DioriteGtk] DesktopShell.vala:254: Shell: xfwm4 (null), CSD 0, appmenu 0, menubar 0
Master: [DEBUG Δ001196us DioriteGtk] Application.vala:226: XFCE session appeared: org.xfce.SessionManager, :1.23
Master: [DEBUG Δ012291us  GLib] setenv()/putenv() are not thread-safe and should not be used after threads are created
Master: [DEBUG Δ000464us Nuvola] XKeyGrabber.vala:181: Obtained a X11 Window for the display ':99.0'.
Master: [DEBUG Δ15s579568us Nuvola] DbusMaster.vala:44: Connection request: 'eu.tiliado.NuvolaAppDeezer' ':1.112'
Master: [DEBUG Δ000137us Nuvola] MasterController.vala:281: Launch app runner for 'deezer': eu.tiliado.NuvolaAppDeezer :1.112
Master: [DEBUG Δ007730us Nuvola] MasterController.vala:194: Connected to runner server for 'deezer'.
Master: [DEBUG Δ294998us Nuvola] MediaKeys.vala:151: GNOME settings daemon vanished: org.gnome.SettingsDaemon.MediaKeys
Master: [DEBUG Δ000037us Nuvola] MediaKeys.vala:151: GNOME settings daemon vanished: org.gnome.SettingsDaemon
Master: [DEBUG Δ000011us Nuvola] MediaKeys.vala:181: Grabbing media keys with X key grabber
Master: [DEBUG Δ001678us Nuvola] XKeyGrabber.vala:77: Grabbed AudioPause, count 1

Note the registration of Deezer app and grabbing media keys with X key grabber.

Anyway, I cannot reproduce your issue. Media keys work for me in XFCE.

@jiri-janousek
Copy link
Member

Could you try to enable Media Player DBus Interface as well?

@4lyn
Copy link

4lyn commented Nov 14, 2021

are you sure the Nuvola service log is complete

Indeed I didn't start Deezer this time. I updated my message

Could you try to enable Media Player DBus Interface as well?

This did the trick. I must have disabled it while there was this other bug
Sorry for the false bug report :-
(it doesn't show on the log though)

@jiri-janousek jiri-janousek removed the need info Assignee needs more information to work on this ticket. label Nov 15, 2021
@jiri-janousek
Copy link
Member

Ok, the issue seems resolved then 👍

Nuvola automation moved this from In progress to Announce Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is not working as expected or the documentation is incorrect.
Projects
Nuvola
  
Announce
Development

No branches or pull requests

4 participants