muammar / mkchromecast

Cast macOS and Linux Audio/Video to your Google Cast and Sonos Devices
http://mkchromecast.com
Other
2.22k stars 140 forks source link

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. #406

Open Aqua1ung opened 1 year ago

Aqua1ung commented 1 year ago

Attempting to run mkchromecast -t in Ubuntu Kinetic (Mkchromecast 0.3.9). Terminal gets stuck at this warning (see title above). Any ideas as to what may be wrong?

Again, the warning is: "Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway."

morrisonj commented 1 year ago

Same issue here with a fresh Ubuntu 22.04 install.

ndom91 commented 1 year ago

Mkchromecast doesn't start after that?

Have you tried setting the QT_QPA_PLATFORM=wayland?

You can add this to your .bashrc to make it permanent

export QT_QPA_PLATFORM=wayland

Ubuntu 22.04 ships with wayland by default, right? You should set / have that env var set to tell QT apps that you're using wayland anyway.

mamadeusia commented 1 year ago

On Ubuntu 22.04 according to this https://stackoverflow.com/a/74888186/21861974 I fix that by running the app in terminal with this QT_QPA_PLATFORM="xcb" obs

Chetan-Gudagamanal commented 1 month ago

I am getting similar warning, Initially Pyqt app was running fine. When I started using figma.com, PyQt app started giving error saying:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. [some_image_path] Kill [Errno 111] Connection refused Killed