cryinkfly / Autodesk-Fusion-360-for-Linux

This is a project, where I give you a way to use Autodesk Fusion 360 on Linux!
https://github.com/cryinkfly/Fusion-360---Linux-Wine-Version-/wiki
MIT License
1.95k stars 121 forks source link

Installation goes through with thousands of "could not open working directory" errors, then launch fails with a permission error *solved* #250

Closed phrxmd closed 2 years ago

phrxmd commented 2 years ago

Describe the bug When I try to install Fusion on recent OpenSUSE Tumbleweed, installation passes OK (but ends with FALSE). However, launching Fusion throws a permission error and the Fusion window never appears.

In addition, I get thousands of error messages: wine: could not open working directory L"unix\\home\\username\\.fusion360\\bin\\", starting in the Windows directory.

To Reproduce Steps to reproduce the behavior:

  1. Install script copied verbatim from the website mkdir -p "$HOME/.fusion360/bin" && cd "$HOME/.fusion360/bin" && wget -N https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/builds/stable-branch/bin/install.sh && chmod +x install.sh && ./install.sh
  2. Accept the default for everything
  3. After the install finishes, launch Fusion 360 from the .desktop file
  4. Permission error, Fusion 360 fails to launch.

An install log (produced with ./install.sh 2>&1 | tee fusion360-install.log) is here: https://gist.github.com/phrxmd/62c804239d184d998c9dc789168fa901 - warning, 38,000 lines and 2.9 MiB.

Expected behavior Fusion 360 should launch.

Screenshots grafik

Desktop (please complete the following information):

Additional context Wine versions:

> zypper if wine wine-gecko wine-mono wine-32bit
Loading repository data...
Reading installed packages...

Information for package wine:
-----------------------------
Repository     : wine
Name           : wine
Version        : 7.11-1462.16
Arch           : x86_64
Vendor         : obs://build.opensuse.org/Emulators
Installed Size : 605.9 MiB
Installed      : No
Status         : not installed
Source package : wine-7.11-1462.16.src
Upstream URL   : http://www.winehq.org/
Summary        : An MS Windows Emulator
[...]

Information for package wine-gecko:
-----------------------------------
Repository     : wine
Name           : wine-gecko
Version        : 2.47.2-65.22
Arch           : noarch
Vendor         : obs://build.opensuse.org/Emulators
Installed Size : 235.6 MiB
Installed      : Yes
Status         : up-to-date
Source package : wine-gecko-2.47.2-65.22.src
Summary        : The Wine specific Gecko HTML rendering engine
[...]

Information for package wine-mono:
----------------------------------
Repository     : wine
Name           : wine-mono
Version        : 7.3.0-52.1
Arch           : noarch
Vendor         : obs://build.opensuse.org/Emulators
Installed Size : 232.7 MiB
Installed      : Yes
Status         : up-to-date
Source package : wine-mono-7.3.0-52.1.src
Upstream URL   : https://github.com/madewokherd/wine-mono
Summary        : A .NET replacement for use by Wine
[...]

Information for package wine-32bit:
-----------------------------------
Repository     : wine
Name           : wine-32bit
Version        : 7.11-1462.16
Arch           : x86_64
Vendor         : obs://build.opensuse.org/Emulators
Installed Size : 515.9 MiB
Installed      : No
Status         : not installed
Source package : wine-7.11-1462.16.src
Upstream URL   : http://www.winehq.org/
Summary        : An MS Windows Emulator
[...]
phrxmd commented 2 years ago

Additional information: the executable is there and has correct permissions:

> ls -l .fusion360/wineprefixes/default/drive_c/Program\ Files/Autodesk/webdeploy/production/59c8a288d74003935db5128cd3acb5349f9d794a/Fusion*.exe
-rwxr-xr-x 1 username users 838704 17. Jun 20:56 '.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/59c8a288d74003935db5128cd3acb5349f9d794a/Fusion360.exe'
-rwxr-xr-x 1 username users 262192 17. Jun 20:56 '.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/59c8a288d74003935db5128cd3acb5349f9d794a/FusionLauncher.exe'

Here is the output from bash ~/.fusion360/launcher.sh:

> bash ~/.fusion360/bin/launcher.sh
--2022-07-01 19:38:12--  https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/builds/stable-branch/bin/build-version.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20 [text/plain]
Saving to: '/tmp/fusion360/build-version.txt'

build-version.txt  100%[===============>]      20  --.-KB/s    in 0s      

Last-modified header missing -- time-stamps turned off.
2022-07-01 19:38:12 (1.16 MB/s) - '/tmp/fusion360/build-version.txt' saved [20/20]

Online Build-Version: 2.0.13168
Online Insider-Build-Version: 2.0.13367
The version.txt file not exist!
EN

(yad:2660): Gdk-CRITICAL **: 19:38:12.820: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(yad:2660): Gdk-WARNING **: 19:38:12.866: gdkwindow-x11.c:5653 drawable is not a native X11 window

(yad:2679): Gdk-CRITICAL **: 19:38:44.616: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(yad:2679): Gdk-WARNING **: 19:38:44.670: gdkwindow-x11.c:5653 drawable is not a native X11 window
wine: invalid directory  in WINEPREFIX: not an absolute path
phrxmd commented 2 years ago

Update - one issue seems to be in box-run.sh:

> cat ~/.fusion360/wineprefixes/default/box-run.sh
WP_BOX='/home/username/.fusion360/wineprefixes/default'
. /home/username/.fusion360/bin/launcher.sh

Firstly this file should contain a shebang line (#!/bin/sh or something). Adding it does not fix the permission error though.

Secondly the first line should probably start with export. When I add that, I can launch Fusion 360 using box-run.sh, however launching it using the .desktop file still produces an error.