dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

call wineboot as a script,

Open pabloveliz opened this issue 2 years ago • 5 comments

wineboot is a script, and in tkg when you call it directly from this setup script, I get

environment: : command not found

Therefore, to call a script from within a script let's use bash because...

$ file /opt/wine-staging/bin/wineboot
/opt/wine-staging/bin/wineboot: POSIX shell script, ASCII text executable

pabloveliz avatar Jul 14 '22 23:07 pabloveliz

Works fine here with TKG.

wineboot has a shebang of #!/bin/sh, not sure why it doesn't work for you.

Can you give more info about your setup, something seems very broken.

Joshua-Ashton avatar Jul 15 '22 04:07 Joshua-Ashton

Maybe something wrong in ~/.profile / ~/.bash_profile / ~/.bashrc ?

pchome avatar Jul 15 '22 13:07 pchome

Can reproduce environment: : command not found when running setup_dxvk.sh install through bash. Distro: EndeavourOS/Arch.

adminx01 avatar Jul 18 '22 14:07 adminx01

@pabloveliz @miocrime Could you post the output of the following commands?

$ which wineboot
$ command -v wineboot
$ ls -l $(readlink -f $(command -v wineboot))

airminer avatar Jul 25 '22 19:07 airminer

sorry for taking long, did not notice your comment which wineboot /usr/bin/wineboot

command -v wineboot /usr/bin/wineboot

ls -l $(readlink -f $(command -v wineboot)) -rwxr-xr-x 1 root root 2337 Jul 3 19:59 /usr/bin/wineboot

I use wine-tkg.

adminx01 avatar Jul 30 '22 13:07 adminx01

$ file /opt/wine-staging/bin/wineboot
/opt/wine-staging/bin/wineboot: POSIX shell script, ASCII text executable

Out of curiosity, if you create a softlink for wineboot in /usr/bin, does it then work properly for you?

ln -s /opt/wine-staging/bin/wineboot /usr/bin/wineboot

Wine staging (from WineHQ) appears to add a soft link for it under /usr/bin by default (maybe it's missing in your case?): wineboot -> /opt/wine-staging/bin/wineboot

and which wineboot returns: /usr/bin/wineboot

Unless somehow tkg needs something from your .bashrc env (which will not get parsed on a non-interactive shell), it should work with this setup.

WinterSnowfall avatar Aug 24 '22 10:08 WinterSnowfall

I am not able to replicate the error anymore. Perhaps it was fixed on tkg's side, didn't look through commits.

I guess this can be closed?

adminx01 avatar Aug 30 '22 17:08 adminx01