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.78k stars 115 forks source link

Brave not redirecting on login #396

Closed reneas closed 3 months ago

reneas commented 4 months ago

When clicking "Sign In" from the Fusion window it opens the login screen on Brave. After signing in, it never redirects back to Fusion.

To Reproduce

  1. Start Fusion
  2. Click on 'Sign in'
  3. Brave Browser Tab opens
  4. Log into Autodesk Account
  5. Nothing happens

Expected behavior

  1. Start Fusion
  2. Click on 'Sign in'
  3. Brave Browser Tab opens
  4. Log into Autodesk Account
  5. Redirection to Fusion with successful login

Desktop:

Additional context when starting brave via konsole it give this error message:

wine: failed to open "C:\\rogram Files\\utodesk\\ebdeploy\\roduction\\a22ca515421cec8a3addbf5f00fde68499915d7\\utodesk Identity Manager\\dskIdentityManager.exe": c0000135

Doing the same thing with firefox as default browser works as expected as mentioned here

michaelcadilhac commented 3 months ago

Looks like backslashes in the adskidmgr-opener.desktop file need to be escaped: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables

dukenukemx commented 3 months ago

I have this problem too and it's still stuck on Sign In. I'm on Linux Mint with FireFox.

sd1337 commented 3 months ago

I have had the same problem yesterday, it seems that webdeploy changes path on every update and then the .desktop file for for adskmgr link is broken. Open ~/.local/share/applications/adskidmgr-opener.desktop and look if the Exec Path matches the actual directory: Exec=env WINEPREFIX="/home/#USER#/.fusion360/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\#CHANGES#\Autodesk Identity Manager\AdskIdentityManager.exe" %u Navigate to your Wineprefix Directory and search for "AdskIdentityManager.exe" find . -name "AdskIdentityManager.exe" The result should be something like this: ./drive_c/Program Files/Autodesk/webdeploy/production/#CHANGES#/Autodesk Identity Manager/AdskIdentityManager.exe Then replace the path in the .desktop file and try the sign in again

waffi121 commented 3 months ago

@sd1337 Thank you! I was just able to log in with it under Linux Mint and Firefox. <3

dukenukemx commented 3 months ago

I have had the same problem yesterday, it seems that webdeploy changes path on every update and then the .desktop file for for adskmgr link is broken. Open ~/.local/share/applications/adskidmgr-opener.desktop and look if the Exec Path matches the actual directory: Exec=env WINEPREFIX="/home/#USER#/.fusion360/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\#CHANGES#\Autodesk Identity Manager\AdskIdentityManager.exe" %u Navigate to your Wineprefix Directory and search for "AdskIdentityManager.exe" find . -name "AdskIdentityManager.exe" The result should be something like this: ./drive_c/Program Files/Autodesk/webdeploy/production/#CHANGES#/Autodesk Identity Manager/AdskIdentityManager.exe Then replace the path in the .desktop file and try the sign in again

Holy crap, thank you that worked. That seems like an easy mistake to make.

PedroMTSilva commented 3 months ago

I have had the same problem yesterday, it seems that webdeploy changes path on every update and then the .desktop file for for adskmgr link is broken. Open ~/.local/share/applications/adskidmgr-opener.desktop and look if the Exec Path matches the actual directory: Exec=env WINEPREFIX="/home/#USER#/.fusion360/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\#CHANGES#\Autodesk Identity Manager\AdskIdentityManager.exe" %u Navigate to your Wineprefix Directory and search for "AdskIdentityManager.exe" find . -name "AdskIdentityManager.exe" The result should be something like this: ./drive_c/Program Files/Autodesk/webdeploy/production/#CHANGES#/Autodesk Identity Manager/AdskIdentityManager.exe Then replace the path in the .desktop file and try the sign in again

This also worked for me! For anyone having trouble still, dont forget that the windows paths are with a backslash \ instead of /, so you would need to replace all of them. Works like a charm!

imrYder commented 3 months ago

Hi, i'm currently trying to launch fusion360 but i've encountered the same issue. I tried changing the AdskIdentityManager path in the adskidmgr.desktop file, I even replaced slashes by back-slaches, it seems like firefox doesn't find any application to handle the thing that is going out of the autodesk connexion page. I tried changing the default system app firefox choose to open adskidmgr to "AdskIdentityManager.exe", with no results... can someone help me pls ?? Thanks

michaelcadilhac commented 3 months ago

@imrYder

 $ env WINEPREFIX="$HOME/.fusion360/wineprefixes/default" wine 'C:\Program Files\Autodesk\....\AdskIdentityManager.exe' 'adskidmgr:/login?...'
reneas commented 3 months ago

I am closing this issue since the original problem got solved by changing the following line in /home/reneas/.local/share/applications/adskidmgr-opener.desktop:

old:

Exec=env WINEPREFIX="/home/reneas/Programme/Fusion" wine "C:\Program Files\Autodesk\webdeploy\production\0a22ca515421cec8a3addbf5f00fde68499915d7\Autodesk Identity Manager\AdskIdentityManager.exe" %u

new:

Exec=env WINEPREFIX="/home/reneas/Programme/Fusion" wine "C:\\Program Files\\Autodesk\\webdeploy\\production\\0a22ca515421cec8a3addbf5f00fde68499915d7\\Autodesk Identity Manager\\AdskIdentityManager.exe" %u

(just added an extra backslash \ to each existing backslash)