跳到正文

wayland-fixes

作者:moehreag

Fix/work around wayland bugs on modern versions. Sibling mod to legacy-lwjgl3.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Minecraft & Wayland

Other mods already promise to run the game on wayland natively, yet they also tell you that for example you are going to loose the window icon. This mod doesn’t, you won’t have to miss out on anything!

This is a sibling mod to legacy-lwjgl3 and more or less does the same things in terms of wayland compatibility, just on very different versions of the game. All sections in its description regarding this also apply to this mod.

If you are running the game inside a sandbox, e.g. by using a launcher packaged as a flatpak, make sure to allow the paths listed below to be accessed for this mod to function correctly!

Accesses Paths & Programs and why

This part is mostly copied from the previously mentioned mod since it also applies here.

Features

  • Injects a .desktop file and the icon in the correct locations for them to function correctly
  • Loads & Displays a virtual cursor on in-game screens to support setting the cursor position

Properties

  • virtual_mouse.export may be passed as true to export the loaded cursor to a cursors directory in the instance folder. It will contain all images contained in the cursor as well as all metadata. It will also create a human-readable metadata file for each image, and a cursor.cursor file in the cursor config format. This file may be used to generate a new X11 cursor out of the images with the xcursorgen program.

Accessed Paths

  • $HOME/.local/share/applications/com.mojang.minecraft.desktop (write)
  • $HOME/.local/share/icons/hicolor/apps/{16x16, 32x32}/minecraft.png (write)
  • $HOME/.local/share/icons/<theme>/cursors/left_ptr (read only)
  • $HOME/.icons/<theme>/cursors/left_ptr (read only)
  • /usr/share/icons/<theme>/cursors/left_ptr (read only)

Accessed Programs

  • xdg-icon-resource (to update the icon system)
  • gsettings (to query for cursor theme & size)

Credits

  • KDE visual design group (the fallback cursor file shipped with the mod is from KDE’s breeze cursor theme)

常见问题

wayland-fixes 支持哪些 Minecraft 版本?

wayland-fixes 支持 Minecraft Java 版 1.20.2–1.20.4,共 3 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

wayland-fixes 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

moehreag 的其他作品

查看全部 →