Autodesk-Fusion-360-for-Linux icon indicating copy to clipboard operation
Autodesk-Fusion-360-for-Linux copied to clipboard

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

Open ficolas2 opened this issue 1 year ago • 27 comments

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):

  • Version number of Autodesk Fusion 360
  • Graphics card model + Graphics card driver (Version number)
  • Operating system (OpenSUSE Leap 15.3, Fedora 34, ...)
  • Desktop environment (XFCE 4.16, Gnome 40, ...)
  • DXVK- or OpenGL-Mode

Desktop (please complete the following information):

  • Version number of Autodesk Fusion 360
  • Graphics card model + Graphics card driver (Version number)
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2060        Off | 00000000:01:00.0  On |                  N/A |
| N/A   56C    P0              23W /  80W |    570MiB /  6144MiB |     18%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| 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

ficolas2 avatar Aug 09 '24 19:08 ficolas2

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

SuperPi911 avatar Aug 10 '24 12:08 SuperPi911

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

ficolas2 avatar Aug 10 '24 14:08 ficolas2

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.

cryinkfly avatar Aug 10 '24 17:08 cryinkfly

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

SuperPi911 avatar Aug 10 '24 19:08 SuperPi911

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

ficolas2 avatar Aug 10 '24 21:08 ficolas2

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

cryinkfly avatar Aug 11 '24 18:08 cryinkfly

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.

ficolas2 avatar Aug 11 '24 20:08 ficolas2

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"

n3oney avatar Aug 18 '24 12:08 n3oney

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?

WoutvanderAa avatar Aug 28 '24 17:08 WoutvanderAa

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.

youzen avatar Aug 29 '24 05:08 youzen

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.

WoutvanderAa avatar Sep 01 '24 17:09 WoutvanderAa

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

marrrkus avatar Sep 04 '24 11:09 marrrkus

I was able to register it manually by ➜ ~ cat .local/share/applications/adskidmgr-opener.desktop and copying the command in single quotes replace %u with the token url "adskidmgr:/login?code=xxxxxx"

make sure env WINEPREFIX and executable is in the same line

juniperchow avatar Sep 27 '24 04:09 juniperchow

NOTE: if your installing Fusion360 via the script (NOT via Flatpak Bottles) in install scripts and are stuck in the login.

NOTE: at the time the installation directory is ~/.autodesk_fusion

Do the following

  1. Run Fusion360
  2. Open login page and login
  3. Right click the "Go to product" and copy link
  4. Open terminal and run the following command
WINEPREFIX="/home/YOUR_USER/.autodesk_fusion/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\LONG_ID_HERE\Autodesk Identity Manager\AdskIdentityManager.exe" "COPIED_LINK"
  • make sure to replace YOUR_USER with your user in the computer.
    • run whoami if not sure
  • make sure to replace LONG_ID_HERE with the id in your directory.
    • Check ~/.autodesk_fusion/wineprefixes/default/drive_c/Program\ Files/Autodesk/webdeploy/production/
  • make sure to replace COPIED_LINK with the link copied when launching Go to product.
    • check step 3

resources

  • https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/387#issuecomment-1936390044
  • https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/460#issuecomment-2315888332

Clumsy-Coder avatar Oct 25 '24 02:10 Clumsy-Coder

This workaround doesn't work (script install method). Running Identity Manager that way produces error:

0b7c:fixme:file:NtLockFile I/O completion on lock not implemented yet
0b7c:err:seh:NtRaiseException Unhandled exception code c0000409 flags 1 addr 0x6ffffed998fe

Fedora 41, Wine 10.0-rc2

alfonder avatar Dec 18 '24 14:12 alfonder

I think I have found the reason why the Fusion360 app does not communicate with the browser. It seems to be a bug in Wine - under some circumstances not yet known to me (probably related to existence of symlinks in the user's home directory), it is not able to use the specified wineprefix and falls back to the default /home/user/.wine.

If this happens, it still works fine if, and only if, there is no other wine application installed under the same user; I tried creating a completely new user, and in this case, Fusion360 installs properly, starts its login page in a browser, and the login works without workarounds. (But there are still error messages from wine about not being able to find the proper wineprefix, but because there are no other wineprefixes anyway, it works.)

Hopefully this will help at least some of the users.

CzechBlueBear avatar Dec 29 '24 20:12 CzechBlueBear

First up, big thanks to @cryinkfly and the other devs - this is the closest I've come to running Fusion on Linux so far!

When running @Clumsy-Coder 's one-liner, I get the following output:

04c0:fixme:file:NtLockFile I/O completion on lock not implemented yet
04c0:fixme:sync:SetWaitableTimerEx (000000000000009C, 00007FFFFE1FC898, 0, 0000000000000000, 0000000000000000, 0000000000000000, 32) semi-stub
04c0:fixme:ver:GetCurrentPackageId (00007FFFFE1FFEB0 0000000000000000): stub
04b8:fixme:ver:GetCurrentPackageId (00007FFFFE2FFEB0 0000000000000000): stub

And when restarting Fusion360 (via Gnome applications screen fwiw, not via CLI) I just get the "Welcome to Fusion" screen and link to login.

fwiw, the link I copied looks sth like:

adskidmgr:/login?code=<some code>&state=<long alphanumeric string>=

Can anyone offer some guidance?

alexcg1 avatar Jan 09 '25 11:01 alexcg1

Workaround from @Clumsy-Coder works for me -- Thank You!!!
I normally use chrome, so I needed to temporarily set Firefox as my default browser.

  • Script install method (w/ all tested plugins)
  • Kubuntu 24.04 LTS
  • Education Licence

For posterity, I get the following output when running the described command:

06c4:fixme:file:NtLockFile I/O completion on lock not implemented yet
06c4:fixme:sync:SetWaitableTimerEx (00000000000000A4, 000000000011C898, 0, 0000000000000000, 0000000000000000, 0000000000000000, 32) semi-stub

zachramsey avatar Jan 22 '25 16:01 zachramsey

For those still landing here,

@Clumsy-Coder workaround worked on 6.15.6-arch1-1 / Hyprland (Fusion 2602.1.25 Personal)

Path to the executable was different on my installation.

WINEPREFIX="<LINUX_HOME>/.fusion360/wineprefixes/default" wine "C:<WIN_HOME>\AppData\Local\Autodesk\webdeploy\production\<LONG_ID_HERE>\Autodesk Identity Manager\AdskIdentityManager.exe" "COPIED_URL_HERE"

Received similar messages to @zachramsey

Thanks all!

kiddera avatar Jul 13 '25 02:07 kiddera

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"`

Hi All, I have an issue with this. I am not sure if maybe Autodesk page was altered in a meantime or what. Could someone kindly paste the button whose URL I am supposed to copy?

szafranski avatar Aug 05 '25 07:08 szafranski

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"`

Hi All, I have an issue with this. I am not sure if maybe Autodesk page was altered in a meantime or what. Could someone kindly paste the button whose URL I am supposed to copy?

Hey @szafranski

To get the URL; log into Autodesk and go to "https://profile.autodesk.com/" here you should see an option under You might be looking for in the bottom right for "Autodesk account".

Clicking that will take you to "manage.autodesk.com", but will have a much longer URL than if you navigate there directly. compared to if you go there directly. You can then follow the rest of the instructions and it should hopefully work (make sure you put the URL in speech marks when running the command.

HTH

Ste.

SteMorritt avatar Aug 09 '25 14:08 SteMorritt

Hey @szafranski

To get the URL; log into Autodesk and go to "https://profile.autodesk.com/" here you should see an option under You might be looking for in the bottom right for "Autodesk account".

Clicking that will take you to "manage.autodesk.com", but will have a much longer URL than if you navigate there directly. compared to if you go there directly. You can then follow the rest of the instructions and it should hopefully work (make sure you put the URL in speech marks when running the command.

HTH

Ste.

That doesn't seem to be the case for me. I just get the URL: https://manage.autodesk.com/home I have fusion somehow installed in a Bottle using the official installer and Wine 10.0 and setting the windows version to 11. When I launch Fusion it goes to the main window and shows a button to sign in. If I click it I see a quick popup for a split second and then nothing. The popup seems to show itself intermittently afterwards though without touching anything.. Is there something I can try?

mrgnex avatar Aug 23 '25 13:08 mrgnex

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"`

Hi All, I have an issue with this. I am not sure if maybe Autodesk page was altered in a meantime or what. Could someone kindly paste the button whose URL I am supposed to copy?

Hey @szafranski

To get the URL; log into Autodesk and go to "https://profile.autodesk.com/" here you should see an option under You might be looking for in the bottom right for "Autodesk account".

Clicking that will take you to "manage.autodesk.com", but will have a much longer URL than if you navigate there directly. compared to if you go there directly. You can then follow the rest of the instructions and it should hopefully work (make sure you put the URL in speech marks when running the command.

HTH

Ste.

Thank you very much for trying to help. Finally my issue seems to be caused by link being opened in a new tab. But opening the Inspector in the web browser right after that, on this new page/tab allowed to me extract the data. Now I have another issue, but will write after some investigation. Thanks!

szafranski avatar Aug 24 '25 07:08 szafranski

Clicking Sign In button while running via bottles doesn't open login page in browser.

monte-monte avatar Sep 21 '25 22:09 monte-monte

No matter how I try it in the https://manage.autodesk.com/ page, the "go to products and services" link is always very clean (https://manage.autodesk.com/products). How does the url look like, that should be entered? Did the Autodesk website change?

nerumo avatar Oct 21 '25 06:10 nerumo

@nerumo in the HTML, right below the button, there is a visually hidden input with the URL as value. As far as a read, you are supposed to take it as whole. Doesn't work for me, though.

tedbarth avatar Oct 21 '25 18:10 tedbarth

New here, a lot of these threads have been very useful getting as far as I have.

Have it installed and running in bottles, have the issue with signing in but the workaround with the bottle command line seems to work.

I can reliably get it running, get the auth link, enter it into the command line with the .exe, at which point I get returned to fusion screen, but the "sign in" button is no longer clickable and it won't move on past that screen, and the whole window seems to lock up, can't interact with anything, can't even move the window around.

Whatever's happening the process is using a significant amount of cpu and memory, but I haven't seen anyone else report this same issue unless I've missed it somewhere. Any help would be greatly appreciated.

edit: looking again this is probably the same issue, just happening in the non-bottles version https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/591

lyra-seren avatar Oct 30 '25 10:10 lyra-seren