simplex-chat icon indicating copy to clipboard operation
simplex-chat copied to clipboard

[Q]: How to run the Linux desktop client in wayland ?

Open sahil-tgs opened this issue 1 year ago • 3 comments

Question

Currently whenever I run the AppImage it runs on xwayland for some reason, usually I would fix it by using flags or environment variables that would force it run in Wayland, but nothing seems to be working with this simplex AppImage. Any Idea how we can make it run in Wayland?

image

sahil-tgs avatar May 12 '24 02:05 sahil-tgs

Some links for the references:

  • https://github.com/JetBrains/skiko/issues/28 (we use compose multiplatform which uses skiko under the hood)
  • https://wiki.openjdk.org/display/wakefield
  • https://youtrack.jetbrains.com/issue/JBR-3206

So we wait until the work supporting Wayland will be done on Java side and after that we will see perspectives to use their JBR (JetBrains Runtime) as a base for SimpleX runtime image

avently avatar May 29 '24 14:05 avently

Java Version

Ensure you have a Java version that supports Wayland. Most recent versions of OpenJDK should work fine with Wayland.

Environment Variables

Set appropriate environment variables to enable Wayland support. This might include variables like JAVA_TOOL_OPTIONS or specific Wayland-related variables depending on your system configuration.

export _JAVA_AWT_WM_NONREPARENTING=1
export GDK_BACKEND=wayland

Launch Application

Run the Simplex-Chat application as you normally would, using the appropriate command.

java -jar simplex-chat.jar

Troubleshooting

If you encounter any issues, such as graphical glitches or crashes, try running the application from the terminal and check for any error messages or warnings.

Wayland-Specific Settings

Some applications might have specific settings or configurations for running on Wayland. Check the documentation or community forums for any Wayland-specific instructions for running Simplex-Chat.

mattsalves avatar May 31 '24 10:05 mattsalves

What is simplex-chat.jar in the comment above mine by mattsalves? It's not part of the simplex releases on Github. Is this an AI generated comment? If yes, could a moderator please delete it?

e00E avatar Jun 13 '24 18:06 e00E

Some links for the references:

* [Support Wayland display servers natively  JetBrains/skiko#28](https://github.com/JetBrains/skiko/issues/28)  (we use compose multiplatform which uses skiko under the hood)

* https://wiki.openjdk.org/display/wakefield

* https://youtrack.jetbrains.com/issue/JBR-3206

So we wait until the work supporting Wayland will be done on Java side and after that we will see perspectives to use their JBR (JetBrains Runtime) as a base for SimpleX runtime image

JetBrains now works on Stable with Wayland provided you use the flag -Dawt.toolkit.name=WLToolkit

handpickencounter avatar Nov 23 '24 02:11 handpickencounter

Mar 04, 2025 https://wiki.openjdk.org/display/wakefield/Pure+Wayland+toolkit+prototype

java -Dawt.toolkit.name=WLToolkit -Dsun.java2d.vulkan=True J2Ddemo.jar

Should be mostly ready. Not familiar with Java so I'm not sure how to try this or if it's possible with the simplex package as distributed.

Inserting those options into [JavaOptions] did not help. Maybe newer libraries are required?

handpickencounter avatar Apr 22 '25 21:04 handpickencounter