Advertisement
rawfox

another_SC_startscript

Feb 24th, 2023
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # minimize the bash window when its started from Lutris, you need xdotool for this
  4. myRESULT="lutris"
  5. if pgrep -x "$myRESULT" >/dev/null
  6. then
  7. WID=$(xdotool getactivewindow)
  8. xdotool windowminimize $WID
  9. fi
  10.  
  11. # exporting some variables to define places and conditions for wine
  12. # -----------------------------------------------------------------
  13. #export STAGING_SHARED_MEMORY=1
  14. #export STAGING_WRITECOPY=1
  15. export WINEESYNC=1
  16. export WINEFSYNC=1
  17. export WINEFSYNC_FUTEX2=1
  18. #export WINEFSYNC_SPINCOUNT=100
  19. export WINEPREFIX="/home/rawfox/M2/StarCitizen"
  20. export WINEDEBUG=-all #+pid,+timestamp,+seh,+loaddll,+virtual,+dialog,+msgbox
  21. export MANGOHUD=1
  22. export MANGOHUD_CONFIGFILE="/home/rawfox/.config/MangoHud/MangoHud-SC.conf"
  23. export DXVK_ASYNC=1
  24. export ENABLE_VKBASALT=1
  25.  
  26. cd "/home/rawfox/M2/StarCitizen/drive_c/Program Files/Roberts Space Industries/RSI Launcher"
  27. wine "RSI Launcher.exe" #"--use-gl=osmesa" # & #"--disable-gpu-compositing"
  28.  
  29. unset WINEPREFIX
  30. unset WINEDEBUG
  31.  
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement