Winetricks / winetricks

Winetricks is an easy way to work around problems in Wine
GNU Lesser General Public License v2.1
2.79k stars 402 forks source link

Problem getting winetricks to run in steam compatdata prefixes #1815

Closed scottz657 closed 3 years ago

scottz657 commented 3 years ago

Hey I'm having trouble getting winetricks to run in steam's compatdata prefixes it uses for proton.

When I try to use WINEPREFIX=~/.local/share/Steam/steamapps/compatdata/489830/pfx winetricks all I get is Executing mkdir -p /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830

I ran the with same command with the -v tag to get verbose output and this is the output

+ return 0
+ shift
+ winetricks_handle_option 
+ return 1
+ echo 
+ grep -v list-installed
+ grep -q -w list
+ winetricks_init
+ test 
+ USERNAME=MY_USERNAME
+ id -u
+ [ 1000 = 0 ]
+ WINETRICKS_WORKDIR=/tmp/winetricks.QftBniN4/w.MY_USERNAME.127904
+ test  = 1
+ rm -rf /tmp/winetricks.QftBniN4/w.MY_USERNAME.127904
+ WINETRICKS_METADATA=/tmp/winetricks.QftBniN4/w.MY_USERNAME.127904/metadata
+ WINETRICKS_CATEGORIES=apps benchmarks dlls fonts games settings mkprefix
+ mkdir -p /tmp/winetricks.QftBniN4/w.MY_USERNAME.127904/metadata/apps
+ mkdir -p /tmp/winetricks.QftBniN4/w.MY_USERNAME.127904/metadata/benchmarks
+ mkdir -p /tmp/winetricks.QftBniN4/w.MY_USERNAME.127904/metadata/dlls
+ mkdir -p /tmp/winetricks.QftBniN4/w.MY_USERNAME.127904/metadata/fonts
+ mkdir -p /tmp/winetricks.QftBniN4/w.MY_USERNAME.127904/metadata/games
+ mkdir -p /tmp/winetricks.QftBniN4/w.MY_USERNAME.127904/metadata/settings
+ mkdir -p /tmp/winetricks.QftBniN4/w.MY_USERNAME.127904/metadata/mkprefix
+ WINETRICKS_CURMENU=prefix
+ trap winetricks_cleanup EXIT HUP INT QUIT ABRT
+ WINETRICKS_OPT_KEEPISOS=0
+ WINETRICKS_OPT_DD=dd
+ WINETRICKS_OPT_SHAREDPREFIX=1
+ winetricks_get_sha256sum_prog
+ command -v sha256sum
+ [ -x /usr/bin/sha256sum ]
+ WINETRICKS_SHA256SUM=sha256sum
+ winetricks_get_platform
+ [  = Windows_NT ]
+ export W_PLATFORM=wine
+ test -d /home/MY_USERNAME/Library
+ XDG_CACHE_HOME=/home/MY_USERNAME/.cache
+ XDG_CONFIG_HOME=/home/MY_USERNAME/.config
+ test 
+ W_CACHE=/home/MY_USERNAME/.cache/winetricks
+ WINETRICKS_POST=/home/MY_USERNAME/.local/share/winetricks/postinstall
+ WINETRICKS_AUTH=/home/MY_USERNAME/.local/share/winetricks/auth
+ WINETRICKS_CONFIG=/home/MY_USERNAME/.config/winetricks
+ test -z  -a -f /home/MY_USERNAME/.config/winetricks/country
+ command -v taskset
+ [ -x /usr/bin/taskset ]
+ W_TASKSET=taskset -c 0
+ winetricks_set_unattended 0
+ W_OPT_UNATTENDED=
+ W_UNATTENDED_SLASH_Q=
+ W_UNATTENDED_SLASH_QB=
+ W_UNATTENDED_SLASH_QN=
+ W_UNATTENDED_SLASH_QNT=
+ W_UNATTENDED_SLASH_QT=
+ W_UNATTENDED_SLASH_QUIET=
+ W_UNATTENDED_SLASH_S=
+ W_UNATTENDED_DASH_SILENT=
+ W_UNATTENDED_SLASH_SILENT=
+ winetricks_wine_setup
+ [ -n  ]
+ W_ISO_MOUNT_ROOT=/mnt/winetricks
+ W_ISO_USER_MOUNT_ROOT=/home/MY_USERNAME/winetricks-iso
+ W_ISO_MOUNT_LETTER=i
+ WINE=wine
+ command -v wineserver
+ dirname wine
+ test -x 
+ test -x wineserver
+ test -x /usr/bin/wineserver
+ break
+ WINESERVER=/usr/bin/wineserver
+ test /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830/pfx
+ WINETRICKS_ORIGINAL_WINEPREFIX=/home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830/pfx
+ command -v wine
+ _abswine=/usr/bin/wine
+ test -x /usr/bin/wine
+ test -f /usr/bin/wine
+ unset _abswine
+ winetricks_early_wine --version
+ sed s/.*wine/wine/
+ WINEDEBUG=-all wine --version
+ sed s/.*1h.=//
+ tr -d \r
+ grep -v -e Module not found -e Could not load wine-gecko
+ WINETRICKS_WINE_VERSION=wine-6.0.1
+ WINETRICKS_ORIG_WINE_VERSION=wine-6.0.1
+ echo wine-6.0.1
+ cut -d   -f1
+ sed -e s/wine-// -e s/-rc.*//
+ _wine_version_stripped=6.0.1
+ w_wine_version_in 3.99,
+ echo 3.99,
+ sed s/,.*//
+ _W_val1=3.99
+ echo 3.99,
+ sed s/.*,//
+ _W_val2=
+ w_compare_wine_version -ge 3.99
+ comparison=-ge
+ known_wine_val1=3.99
+ known_wine_val2=
+ _expected_pos_current_wine=2
+ printf %s\n%s\n%s 3.99 6.0.1 
+ sort -t. -k 1,1n -k 2,2n -k 3,3n
+ grep -n ^6.0.1$
+ cut -d : -f1
+ _pos_current_wine=2
+ [ 2 = 2 ]
+ return 1
+ unset _W_range _W_val1 _W_val2
+ return 1
+ winetricks_set_wineprefix 
+ test 
+ WINEPREFIX=/home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830/pfx
+ export WINEPREFIX
+ dirname /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830/pfx
+ w_try mkdir -p /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830
+ export WINEDLLOVERRIDES
+ [ -z  ]
+ printf %s\n Executing mkdir -p /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830
Executing mkdir -p /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830
+ mkdir -p /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830
+ status=0
+ en_ms_5=exit status 0 - user selected 'Cancel'
+ en_ms_105=exit status 0 - normal, user selected 'restart now'
+ en_ms_194=exit status 0 - normal, user selected 'restart later'
+ en_abort=Note: command mkdir -p /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830 returned status 0. Aborting.
+ pl_abort=Informacja: poelcenie mkdir -p /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830 zwróciło status 0. Przerywam.
+ ru_abort=Важно: команда mkdir -p /home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830 вернула статус 0. Прерывание.
+ [ -n  ]
+ W_DRIVE_C=/home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830/pfx/dosdevices/c:
+ W_WINDIR_UNIX=/home/MY_USERNAME/.local/share/Steam/steamapps/compatdata/489830/pfx/dosdevices/c:/windows
+ w_try winetricks_early_wine cmd /c echo init

Replaced every instance of my computer's name with MY_USERNAME to conceal my identity.

not sure what to make of this, but that's all the information I have about the bug.

scottz657 commented 3 years ago

Updated to the latest wine-staging and winetricks and problem no longer exists. closed.