Fusion get a (bigger) update

When Fusion get a (bigger) update then it could happen that a new folder is created in which the Fusion360.exe is also located!
With this change, the latest version will be selected and started up for you. 👍

Thanks to the user @Tony763 for his [help](https://github.com/cryinkfly/Fusion-360---Linux-Wine-Version-/issues/71#issue-982958482)!
This commit is contained in:
Steve Zabka
2021-08-30 21:55:25 +02:00
committed by GitHub
parent 990f939149
commit c78626b9b9

View File

@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Autodesk Fusion 360
Comment=This program launcher only works if you selected the standard installation when installing Autodesk Fusion 360!
Exec=cd "$(find /$HOME -name Fusion360.exe -printf %h -quit 2>/dev/null)" && WINEPREFIX="/$HOME/$USER/.wineprefixes/fusion360" wine Fusion360.exe
Exec=fusion360starter="$(find $HOME/.wineprefixes/fusion360 -name Fusion360.exe -printf "%T+ %p\n" | sort -r 2>&1 | head -n 1 | sed -r 's/.+0000000000 (.+)/\1/')" && WINEPREFIX="$HOME/.wineprefixes/fusion360" wine "$fusion360starter"
Type=Application
Categories=Development;Graphics;Science
StartupNotify=true