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.92k stars 119 forks source link

Bottles (Flatpak) - Signing in doesnt return me back to the application #460

Open ficolas2 opened 1 month ago

ficolas2 commented 1 month ago

Describe the bug Running the application with flatpaks, after I log in, it doesnt return me back to the application, as I get "no apps available"

To Reproduce Steps to reproduce the behavior:

  1. Install autodesk360 with flatpak bottles
  2. Run it
  3. Log in in the browser
  4. Redirecting to the app doesnt work

Screenshots If applicable, add screenshots to help explain your problem.

image image

Desktop (please complete the following information):

Desktop (please complete the following information):

+---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | 0 N/A N/A 2153 G /usr/lib/xorg/Xorg 218MiB | | 0 N/A N/A 2354 G ...irefox/4539/usr/lib/firefox/firefox 152MiB | | 0 N/A N/A 2906 G ...ures=SpareRendererForSitePerProcess 77MiB | | 0 N/A N/A 2921 G ...nglingPtr --variations-seed-version 92MiB | | 0 N/A N/A 5762 G .../nicolas/.local/kitty.app/bin/kitty 13MiB | | 0 N/A N/A 10528 G .../nicolas/.local/kitty.app/bin/kitty 9MiB | | 0 N/A N/A 15701 G .../nicolas/.local/kitty.app/bin/kitty 3MiB | +---------------------------------------------------------------------------------------+


- Operating system (OpenSUSE Leap 15.3, Fedora 34, ...) Ubuntu 22.04
- Desktop environment (XFCE 4.16, Gnome 40, ...) X11
- DXVK- or OpenGL-Mode 
SuperPi911 commented 1 month ago

Same here , the wine script version doesnt open the browser , the bootle version opens but when i login i doesnt redirect to the app , it never logs in

ficolas2 commented 1 month ago

Same here , the wine script version doesnt open the browser , the bootle version opens but when i login i doesnt redirect to the app , it never logs in

Same, the wine script version doesn't open the browser for me either

cryinkfly commented 1 month ago

The reason for this is that the installation variant under Bottles (Flatpak) is out of date and important patches are missing that are already available in the normal installation variant (without Flatpak!). But I should also say that I do not support the Flatpak variant myself! Instead, it is maintained by a user from my community.

SuperPi911 commented 1 month ago

Or just make the normal version open the web browser for both of us

ficolas2 commented 1 month ago

The reason for this is that the installation variant under Bottles (Flatpak) is out of date and important patches are missing that are already available in the normal installation variant (without Flatpak!). But I should also say that I do not support the Flatpak variant myself! Instead, it is maintained by a user from my community.

Could the flatpak version be colliding in some way with the wine version? Because we both first tried the flatpak version, didnt work, and now we cant get the wine version to open the browser.

Thanks

cryinkfly commented 1 month ago

@ficolas2 Theoretically not. But I just don't know what exactly was programmed.

ficolas2 commented 1 month ago

I see. Anything we could do to debug this? Im not familiar with wine stuff My adskidmr-opener.desktop file, in .local/share/applications, is

[Desktop Entry]
Type=Application
Name=adskidmgr Scheme Handler
Exec=sh -c 'env WINEPREFIX="/home/nicolas/.autodesk_fusion/wineprefixes/default" wine "$(find /home/nicolas/.autodesk_fusion/wineprefixes/default/ -name "AdskIdentityManager.exe" | head -1 | xargs -I '{}' echo {})" "%u"'
StartupNotify=false
MimeType=x-scheme-handler/adskidmgr;

When I open that program, the adskIndentityManager.exe, with wine, something does seem to open.

n3oney commented 3 weeks ago

Workaround:

  1. open the login page
  2. select the "Go to product" button in the web inspector, and copy the URL it leads to
  3. open your bottle's command line
  4. cd into C:\Program Files\Autodesk\webdeploy\production\<LONG_ID_HERE>\Autodesk Identity Manager (there's two folders in the production folder for me, the Autodesk Identity Manager is in one of them)
  5. execute ./AdskIdentityManager.exe "COPIED_URL_HERE"
WoutvanderAa commented 2 weeks ago

Workaround:

1. open the login page

2. select the "Go to product" button in the web inspector, and copy the URL it leads to

3. open your bottle's command line

4. cd into `C:\Program Files\Autodesk\webdeploy\production\<LONG_ID_HERE>\Autodesk Identity Manager`    (there's two folders in the production folder for me, the Autodesk Identity Manager is in one of them)

5. execute `./AdskIdentityManager.exe "COPIED_URL_HERE"`

I did this but when I return it tries to sign me back in but it fails to do so and it is just the fusion 360 start up screen with signing in at the bottom. Did I do something wrong or are there ways to fix this?

youzen commented 2 weeks ago

I now have Fusion360 installed through bottles authenticating and logging in properly. The issue is that the bottle does not have a .desktop file and associated mime type to pass the authentication url back to AdskIdentityManager.exe in the bottle and the .desktop created by the criyinkfly install script will not work for the bottles install. It was easy enough to create the correct .desktop file, the additional issue however is that for whatever strange reason bottles-cli called in the exec= section of the .desktop would not accept the -a argument for "%u" and will only accept --args. If there is enough interest I can do a step by step procedure to get it working if people are still having issues.

WoutvanderAa commented 1 week ago

I now have Fusion360 installed through bottles authenticating and logging in properly. The issue is that the bottle does not have a .desktop file and associated mime type to pass the authentication url back to AdskIdentityManager.exe in the bottle and the .desktop created by the criyinkfly install script will not work for the bottles install. It was easy enough to create the correct .desktop file, the additional issue however is that for whatever strange reason bottles-cli called in the exec= section of the .desktop would not accept the -a argument for "%u" and will only accept --args. If there is enough interest I can do a step by step procedure to get it working if people are still having issues.

I would love to see a step by step tutorial! I think most of the linux users that use fusion and every user in the future with this issue would love that.

marrrkus commented 1 week ago

I now have Fusion360 installed through bottles authenticating and logging in properly. The issue is that the bottle does not have a .desktop file and associated mime type to pass the authentication url back to AdskIdentityManager.exe in the bottle and the .desktop created by the criyinkfly install script will not work for the bottles install. It was easy enough to create the correct .desktop file, the additional issue however is that for whatever strange reason bottles-cli called in the exec= section of the .desktop would not accept the -a argument for "%u" and will only accept --args. If there is enough interest I can do a step by step procedure to get it working if people are still having issues.

+1

Found a workaround here: https://xhyrom.dev/blog/posts/proper-way-to-install-fusion360-on-linux