Skip to content

Commit

Permalink
steam: Fix factorio#113202
Browse files Browse the repository at this point in the history
SDL2 games don't have the cursor-shape-v1 protocol backported to stable, so they need a little extra help to find the cursors under Wayland.

Link: https://forums.factorio.com/113202
  • Loading branch information
riking committed Jan 21, 2025
1 parent 6a3dd63 commit 4775c3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/by-name/st/steam/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ let
export LIBVA_DRIVERS_PATH=/run/opengl-driver/lib/dri:/run/opengl-driver-32/lib/dri
export VDPAU_DRIVER_PATH=/run/opengl-driver/lib/vdpau:/run/opengl-driver-32/lib/vdpau
# This is needed on KDE Plasma + Wayland + SDL 2 Stable to find the cursors properly. Already fixed in SDL3 (cursor-shape-v1) and in Gnome.
# https://forums.factorio.com/113202
export XCURSOR_PATH=$(readlink -f /run/current-system/sw)/share/icons
set -a
${lib.toShellVars extraEnv}
set +a
Expand Down

0 comments on commit 4775c3e

Please sign in to comment.