您尚未登录。

#1 2024-06-29 09:42:25

giteeajake
a noob
所在地: Hebei
注册时间: 2024-06-11
帖子: 62
个人网站

Errors about Minecraft Java 1.21 on Wayland - Hyprland

Hello. Everyone.
only English

I  saw some different errors.(错误)
sad

INFO:
OS: ArchLinux latest
Desktop Server and Client : Wayland
Desktop : Hyprland
JDK : OpenJDK 22
CPU bits:64
Minecraft Version: 1.21

When I play Minecraft.
The alacritty show errors on Hyprland

But NO ERRORS on Gnome.

My .bash_profile:
function set_wayland_env
{
  cd ${HOME}
  # 设置语言环境为中文
  export LANG=zh_CN.UTF-8
  # 解决QT程序缩放问题
  export QT_AUTO_SCREEN_SCALE_FACTOR=1
  # QT使用wayland和gtk
  export QT_QPA_PLATFORM="wayland;xcb"
  export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
  # 使用qt6ct软件配置QT程序外观
  export QT_QPA_PLATFORMTHEME=qt6ct

  # 一些游戏使用wayland
  export SDL_VIDEODRIVER=wayland
  # 解决java程序启动黑屏错误
  export _JAVA_AWT_WM_NONEREPARENTING=1
  # GTK后端为 wayland和x11,优先wayland
  export GDK_BACKEND="wayland,x11"

}

# 命令行输入这个命令启动hyprland,可以自定义
function start_hyprland
{
  set_wayland_env

  export XDG_SESSION_TYPE=wayland
  export XDG_SESSION_DESKTOP=Hyprland
  export XDG_CURRENT_DESKTOP=Hyprland
  # 启动 Hyprland程序
  exec Hyprland

}

export RUST_BACKTRACE=1
export QT_QPA_PLATFROM=wayland
[[ -f ~/.bashrc ]] && . ~/.bashrc



how to do


i am a noob

离线

#2 2024-06-29 09:48:45

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: Errors about Minecraft Java 1.21 on Wayland - Hyprland

错误信息呢??

离线

#3 2024-06-29 10:02:36

giteeajake
a noob
所在地: Hebei
注册时间: 2024-06-11
帖子: 62
个人网站

Re: Errors about Minecraft Java 1.21 on Wayland - Hyprland

Thanks
But I don't know why it can run?
I remember 1.20.6 has the bugs


i am a noob

离线

页脚