34
submitted 7 months ago* (last edited 7 months ago) by schizoidman@lemmy.ml to c/kde@lemmy.kde.social

I have a 3D printing software that does not display well on Wayland. Instead of relogging to start a x11 session is there a way to force that one software to display in x11 instead of Wayland?

Edit

AddingQT_QPA_PLATFORM=xcb to the enviroment variables was the solution for me.

Thanks to everyone for the help.

top 7 comments
sorted by: hot top controversial new old
[-] KaRunChiy@kbin.run 14 points 7 months ago

if its a qt application then run in a console "QT_QPA_PLATFORM=xcb program_name", if it's a gtk application i think it's "GDK_BACKEND=x11" though I'm not entirely sure.

I have to do this with LMMS as on sway click and drag doesn't work for some odd reason

[-] RedWeasel@lemmy.world 4 points 7 months ago

Additionally once you figure out the environment variable you can add in to the .desktop file so it will launch from a launcher in that way, though updates will reset that.

On arch wiki is a page on wayland which includes info on toolkits, though you may need to figure out the x11 option it will include the variable/option needed. https://wiki.archlinux.org/title/wayland#GUI_libraries

[-] fossphi@lemm.ee 5 points 7 months ago

though updates will reset that.

Copy the .desktop file from root (/usr/share/applications) to the local directory (~/.local/share/applications), then your package manger won't overwrite your changes

https://wiki.archlinux.org/title/desktop_entries

See section 6.1, Modify desktop files

[-] furzegulo@lemmy.dbzer0.com 7 points 7 months ago

depends on the application. check here for a list how make different backends use xwayland: https://wiki.archlinux.org/title/Wayland#GUI_libraries

[-] rtxn@lemmy.world 4 points 7 months ago

Have you tried using Gamescope? It's obviously made with games in mind, but you can use it to run any application inside a nested compositor.

If not, you could try starting the application in Xwayland, or starting an X session inside Xwayland and then starting the application inside that.

[-] governorkeagan@lemdro.id 2 points 7 months ago

I’m in a similar situation. My time tracking software for work refuses to work on Wayland (I tried using xwayland as well).

[-] Pantherina@feddit.de 2 points 7 months ago

Easiest is flatpak, where you just disable Wayland permission.

The env vars are always different

this post was submitted on 13 Mar 2024
34 points (94.7% liked)

KDE

5207 readers
56 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 1 year ago
MODERATORS