Files
Autodesk-Fusion-360-for-Linux/files/extras/desktop-starter/fusion360-launcher.sh

27 lines
1.3 KiB
Bash
Raw Normal View History

2021-11-09 08:24:45 +01:00
#!/bin/bash
#############################################################################
# Name: Autodesk Fusion 360 - Launcher (Linux) #
# Description: With this file you run Autodesk Fusion 360 on your system. #
# Author: Steve Zabka #
# Author URI: https://cryinkfly.com #
# License: MIT #
# Copyright (c) 2020-2021 #
# Time/Date: 09:00/23.11.2021 #
# Version: 1.1 #
2021-11-09 08:24:45 +01:00
#############################################################################
#################################
# Open Autodesk Fusion 360 now! #
#################################
function fusion360-starter {
# You must change the first part ($HOME/.wineprefixes/fusion360) and the last part (WINEPREFIX="$HOME/.wineprefixes/fusion360") when you have installed Autodesk Fusion 360 into another directory!
launcher="$(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 "$launcher"
2021-11-09 08:24:45 +01:00
}
fusion360-starter