Describe the bug
After updating and installing packages with the systems package manager APT, the install script is in the wrong directory and fails to execute the rest of the script in terms of launching winetricks and the Fusion installer.
This is caused by the script to download the gpg keys for the package manager to a temp directory and changing to that directory, but it does not change back to the install directory. The rest of the script assumes that the scripts current working directory is the initial install directory $HOME/.wineprefixes/fusion360/INSTALLDIR/
To Reproduce
Steps to reproduce the behavior:
Run the script on an Ubuntu 21.x system
Watch the log in the background
After the commands of the package manager, it should run winetricks, but if will fail to locate the binary
Expected behavior
The script should change back to the INSTALLDIR after installing the gpg key and continue the installation there.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
AMD RX5700 XT, Mesa 21.3.0 - kisak-mesa PPA
Ubuntu 21.10
XFCE
OpenGL-Mode
Additional context
The issue persists only on Ubuntu 21.x, because these are the only OS variants that create a temp dir for a gpg key and change to that directory. A cd $HOME/.wineprefixes/fusion360/INSTALLDIR/ at the end of the functions ubuntu21 and ubuntu21_10 will fix the issue.
Describe the bug After updating and installing packages with the systems package manager APT, the install script is in the wrong directory and fails to execute the rest of the script in terms of launching winetricks and the Fusion installer.
This is caused by the script to download the gpg keys for the package manager to a temp directory and changing to that directory, but it does not change back to the install directory. The rest of the script assumes that the scripts current working directory is the initial install directory
$HOME/.wineprefixes/fusion360/INSTALLDIR/
To Reproduce Steps to reproduce the behavior:
Expected behavior The script should change back to the INSTALLDIR after installing the gpg key and continue the installation there.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context The issue persists only on Ubuntu 21.x, because these are the only OS variants that create a temp dir for a gpg key and change to that directory. A
cd $HOME/.wineprefixes/fusion360/INSTALLDIR/
at the end of the functionsubuntu21
andubuntu21_10
will fix the issue.