SC on Wayland + Pipewire

Qt apps use native Wayland by default, which gives plain window borders. Forcing the X11 backend makes GNOME draw the title bar and shadows:

QT_QPA_PLATFORM=xcb pw-jack scide

This runs the app through XWayland instead of native Wayland. Also notice the pw-jack which will make it run through pipewire. I hope SC will run natively on pipewire and wayland soon.

Hi,

Two issue reports that may be of interest:

hjh

yes im aware of these, that why for the moment being running SC with the above command in a Wayland environment with pipewire is the only solution.

I was about to ask a question about Linux and Qt and saw this question - it might be related.

In general Kubuntu 26.04 which I am using has tons of problems with user interface stuff which I believe is to do with Wayland - and sorry, I don’t even know what that is.

Quite a bit of GUI-related stuff in SuperCollider is heavily buggy for me. In particular, Buffer.loadDialog causes the interpreter to crash about 50% of the time. I see errors like this when using it:

ERROR: X Error of failed request:  BadValue (integer parameter out of range for operation)

Do you think this is related to the issue @ape_din raised? Is the thing he quoted a build parameter I can use when building from source?

I don’t have an answer for this, I’m afraid. I found a report on the kubuntu forums about the qt5 file dialog crashing in kubuntu 26.04, but I think we’re already on qt6. Qt5 file picker causes applications to crash after upgrading to 26.04 - Kubuntu Forums

Wayland is a rapidly approaching bit of technical debt, that’s for sure.

Tbh Wayland hasn’t really gotten onto my radar since I’m still on Xubuntu, so I don’t have an opinion about that, other than that eventually X11 will go away and I’m not sure we’re prepared for that.

Wrt the pw-jack shim, Luc identified some degree of performance improvement with a native Pipewire backend for scsynth, but (my experience only, ymmv) I’m generally working far enough below CPU limits that I don’t feel any performance impairment from the shim. My user experience with SC on Pipewire (and Pipewire in general) has been excellent. For my use cases, pw-jack isn’t a major problem; others may have different use cases, and on principle, it would be good for scsynth to catch up to the new audio landscape in Linux.

hjh