flathub / com.mojang.Minecraft

https://flathub.org/apps/details/com.mojang.Minecraft
32 stars 13 forks source link

Set XCURSOR_PATH to both host and user icon directories (#95) #103

Closed bytzo closed 2 years ago

bytzo commented 2 years ago

This pull request sets the XCURSOR_PATH environment variable, which should fix the cursor icon theme being incorrect.

Flatpak exposes the host's system and user icons inside of the Flatpak at /run/host/share/icons and /run/host/user-share/icons. See 1ee74fc and ad87b12. These paths are added to the XDG_DATA_DIRS environment variable so that applications may find them. But, Chromium hard-codes the paths of system and user icons, so it cannot locate these icons. However, this behavior can be overridden using the XCURSOR_PATH environment variable. By setting the XCURSOR_PATH environment variable to the Flatpak-exposed system and user icons, the cursor icon theme should now be correct inside of the launcher.

Fixes #95.

flathubbot commented 2 years ago

Started test build 60171

flathubbot commented 2 years ago

Build 60171 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/58039/com.mojang.Minecraft.flatpakref
flathubbot commented 2 years ago

Started test build 60361

AsciiWolf commented 2 years ago

Thanks!

flathubbot commented 2 years ago

Build 60361 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/58226/com.mojang.Minecraft.flatpakref