From c78626b9b9e00ecfdab11f6b14db84e565c11366 Mon Sep 17 00:00:00 2001 From: Steve Zabka <79079633+cryinkfly@users.noreply.github.com> Date: Mon, 30 Aug 2021 21:55:25 +0200 Subject: [PATCH] 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. :+1: Thanks to the user @Tony763 for his [help](https://github.com/cryinkfly/Fusion-360---Linux-Wine-Version-/issues/71#issue-982958482)! --- files/Autodesk Fusion 360.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/Autodesk Fusion 360.desktop b/files/Autodesk Fusion 360.desktop index f4bc4d2..43ededc 100644 --- a/files/Autodesk Fusion 360.desktop +++ b/files/Autodesk Fusion 360.desktop @@ -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