X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b1e8e5ac6467e8b0b8865b3a3387d2ea614b0672..b11d380556485d135ba4f81c826b49e37fce17d1:/bin/steam diff --git a/bin/steam b/bin/steam index 206d8c8..56521bd 100755 --- a/bin/steam +++ b/bin/steam @@ -8,4 +8,6 @@ export STEAMWM_MANAGE_ERRORS=1 # 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' -exec /usr/lib/steam/steam "${@:-"steam://open/games/"}" +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