You are not logged in.

#1 2023-02-06 02:54:54

hamhock
Member
Registered: 2015-04-16
Posts: 94

[SOLVED] launch an app via Xwayland

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

#2 2023-02-06 03:31:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,171
Website

Re: [SOLVED] launch an app via Xwayland

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

Online

#3 2023-02-06 13:55:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,777

Re: [SOLVED] launch an app via Xwayland

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

#4 2023-02-06 16:31:01

hamhock
Member
Registered: 2015-04-16
Posts: 94

Re: [SOLVED] launch an app via Xwayland

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

#5 2023-02-06 16:36:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,171
Website

Re: [SOLVED] launch an app via Xwayland

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

Online

#6 2023-02-06 16:50:45

hamhock
Member
Registered: 2015-04-16
Posts: 94

Re: [SOLVED] launch an app via Xwayland

Ah - that was easy. Thank you.

Offline

Board footer

Powered by FluxBB