Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Arch Linux: spotify met flatpak en wayland  (gelezen 1585 keer)

Offline bart85

  • Lid
Arch Linux: spotify met flatpak en wayland
« Gepost op: 2022/01/30, 15:09:25 »
Hier op Arch Linux gebruik ik wayland en flatpak. Desktop omgeving is de compositor sway.
Ik probeer spotify te starten, maar krijg onderstaande error.

$ flatpak run --socket=wayland com.spotify.Client

$ /app/extra/bin/spotify: /app/lib/libcurl-gnutls.so.4: no version information available (required by /app/extra/bin/spotify)
[spotifywm] attached to spotify
/app/extra/share/spotify/spotify: /app/lib/libcurl-gnutls.so.4: no version information available (required by /app/extra/share/spotify/spotify)
/app/extra/share/spotify/spotify: /app/lib/libcurl-gnutls.so.4: no version information available (required by /app/extra/share/spotify/spotify)
[spotifywm] attached to spotify
Traceback (most recent call last):
  File "/app/bin/set-dark-theme-variant.py", line 11, in <module>
    disp = Xlib.display.Display()
  File "/app/lib/python3.9/site-packages/Xlib/display.py", line 89, in __init__
    self.display = _BaseDisplay(display)
  File "/app/lib/python3.9/site-packages/Xlib/display.py", line 71, in __init__
    protocol_display.Display.__init__(self, *args, **keys)
  File "/app/lib/python3.9/site-packages/Xlib/protocol/display.py", line 84, in __init__
    name, protocol, host, displayno, screenno = connect.get_display(display)
  File "/app/lib/python3.9/site-packages/Xlib/support/connect.py", line 73, in get_display
    return mod.get_display(display)
  File "/app/lib/python3.9/site-packages/Xlib/support/unix_connect.py", line 76, in get_display
    raise error.DisplayNameError(display)
Xlib.error.DisplayNameError: Bad display name ""
[spotifywm] attached to spotify
« Laatst bewerkt op: 2022/01/30, 15:11:40 door bart85 »
Je leert maar mooi over weg gaan met de commandline.
Linus: "I'm happy with the people who are wandering around looking at the stars but I am looking at the ground and I want to fix the pothole before I fall in."
I look to the clouds behind me and see the thunder coming.

Offline MKe

  • Lid
Re: Arch Linux: spotify met flatpak en wayland
« Reactie #1 Gepost op: 2022/01/30, 15:42:09 »
Blijkbaar werkt Spotify niet met Wayland. Ik gebruik Wayland zelf niet, maar volgens mij kon je in Wayland ook weer X installeren voor de programma’s door dat nodig hebben. Dat heet XWayland volgens mij.
« Laatst bewerkt op: 2022/01/30, 15:45:13 door MKe »
Mijn blokkendoos blog: http://mke21.wordpress.com/

Offline vanadium

  • Lid
Re: Arch Linux: spotify met flatpak en wayland
« Reactie #2 Gepost op: 2022/01/30, 15:56:43 »
+1. In Arch Linux configureer je zelf je systeem: heel goed mogelijk dus dat xwayland bij jou inderdaad niet geïnstalleerd is als je dat zelf niet expliciet hebt gedaan.

Offline bart85

  • Lid
Re: Arch Linux: spotify met flatpak en wayland
« Reactie #3 Gepost op: 2022/01/30, 16:06:37 »
xorg-xwayland is geinstalleerd zonder resultaat.
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
# export MOZ_ENABLE_WAYLAND=1
export GDK_BACKEND=x11,wayland
# export DISPLAY=:0

Ik heb van alles geprobeerd met deze environment variables. De error 'cannot open display' is weg na het uitzetten van de DISPLAY var, maar de foutmelding 'Bad display name' blijft over.
Je leert maar mooi over weg gaan met de commandline.
Linus: "I'm happy with the people who are wandering around looking at the stars but I am looking at the ground and I want to fix the pothole before I fall in."
I look to the clouds behind me and see the thunder coming.

Offline bart85

  • Lid
Re: Arch Linux: spotify met flatpak en wayland
« Reactie #4 Gepost op: 2022/01/30, 17:12:25 »
Het is opgelost. Xwayland stond per ongeluk uit in sway. Gecorrigeerd en werkend.
Je leert maar mooi over weg gaan met de commandline.
Linus: "I'm happy with the people who are wandering around looking at the stars but I am looking at the ground and I want to fix the pothole before I fall in."
I look to the clouds behind me and see the thunder coming.