casualsnek / onthespot

qt based music downloader written in python
GNU General Public License v2.0
932 stars 78 forks source link

[BUG] - OnTheSpot GUI fails to start on Wayland due to missing Qt platform plugin #152

Open xaviqo opened 2 months ago

xaviqo commented 2 months ago

When attempting to launch the onthespot_gui application, it fails with an error related to the Qt platform plugin. The application cannot start because the "wayland" Qt platform plugin could not be found. This issue occurs while using OnTheSpot version 0.5 on Fedora 39.

Error:

OTS Version : 0.5 Config version: 0.5 Attempting to use system ffmpeg binary ! Using ffmpeg binary at: /usr/bin/ffmpeg [2024-08-30 19:40:21,050 :: init :: /home/xavi/.local/lib/python3.12/site-packages/onthespot/init.py -> 11: main() :: INFO] -> Starting application in 3 2 1 Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

[1] 7370 IOT instruction (core dumped) onthespot_gui

xaviqo commented 2 months ago

I've also tried to force xcb but the issue persists:

QT_QPA_PLATFORM=xcb onthespot_gui

justin025 commented 2 months ago

Of my releases here (v0.6) would you prefer an appimage or a binary. Neither are built with wayland support but I could build whichever you prefer.

Since you look like an experienced developer you could just run the build scripts yourself, they should be pretty easy to follow.

RandomLegend commented 2 months ago

As a wayland user aswell, i'd love to have a wayland compatible build myself!

I don't care wether it's appiamge or binary :)

justin025 commented 2 months ago

I added wayland libraries to the 0.6.1 builds https://github.com/justin025/onthespot/releases/tag/v0.6.1