X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/a595b4c24e4666315e065960dd2afeabd13e7707..2bc5cc531c50d87c208965cdc80c0f42df56ecb1:/bin/steam?ds=sidebyside diff --git a/bin/steam b/bin/steam index 4822d9c..56521bd 100755 --- a/bin/steam +++ b/bin/steam @@ -2,10 +2,12 @@ export STEAMWM_FORCE_BORDERS=1 export STEAMWM_PREVENT_MOVE=1 -export STEAMWM_FIX_NET_WM_NAME=1 export STEAMWM_GROUP_WINDOWS=1 export STEAMWM_SET_WINDOW_TYPE=1 +export STEAMWM_MANAGE_ERRORS=1 -export LD_PRELOAD="/home/ramsi/src/steamwm/steamwm/steamwm.so:$LD_PRELOAD" - -exec /usr/bin/steam ${1:-"steam://open/games/"} +# see https://chakraos.org/wiki/index.php?title=Steam#Missing_Direct_Rendering +export LD_PRELOAD='/home/ramsi/src/steamwm/steamwm/$LIB/steamwm.so /usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' +steam_log=$XDG_DATA_HOME/Steam/steam_stdout.txt +[[ -f "$steam_log" ]] && mv "$steam_log"{,.old} +exec /usr/lib/steam/steam "${@:-"steam://open/games/"}" &> $steam_log