You are not logged in.
Pages: 1
I have a fresh Gnome install running wayland. I have a Java app that will not run on wayland - what is procedure for launching an app from the command line with Xwayland.
Last edited by hamhock (2023-02-06 18:23:00)
Offline
If xwayland is enabled in the compositor (which it is for gnome) and installed, then there is nothing to do - you just run the command.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Which is why you should share the unasked question, which exact command fails and with which exact command and command output are you trying to execute it.
Offline
here is the command and output:
[richard@xone Jts]$ ./tws
(java:5527): Gdk-CRITICAL **: 21:46:48.679: gdk_x11_display_set_window_scale: assertion 'GDK_IS_X11_DISPLAY (display)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fbdd26ea2ff, pid=5527, tid=0x00007fbca36fc6c0
#
# JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.202-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libX11.so.6+0x2d2ff] XInternAtom+0x3f
#
Offline
Ah, that is an exception as java is using a toolkit that defaults to wayland while the java app requires x11, so you do need to specify it:
GDK_BACKEND=x11 ./tws
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ah - that was easy. Thank you.
Offline
Pages: 1