Skip to content

Commit

Permalink
chore: Add comments to bazzite-steam-runtime so there's no confusion …
Browse files Browse the repository at this point in the history
…what it's doing or why.
  • Loading branch information
KyleGospo committed Aug 11, 2023
1 parent ca08e54 commit 789da54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system_files/usr/bin/bazzite-steam-runtime
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash

if [[ "$XDG_SESSION_TYPE" = "wayland" ]] && [[ -e /usr/lib/extest/libextest.so ]]; then
# https://github.com/Supreeeme/extest
# Extest is a drop in replacement for the X11 XTEST extension.
# It creates a virtual device with the uinput kernel module.
# It's been primarily developed for allowing the desktop functionality
# on the Steam Controller to work while Steam is open on Wayland.
# Also supports Steam Input as a whole.
env LD_PRELOAD=/usr/lib/extest/libextest.so /usr/bin/steam-runtime "$*"
else
/usr/bin/steam-runtime "$*"
Expand Down

0 comments on commit 789da54

Please sign in to comment.