Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ficolas2 opened this issue Aug 9, 2024 · 17 comments
Open
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@ficolas2
Copy link

ficolas2 commented Aug 9, 2024

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
@SuperPi911
Copy link

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
Copy link
Author

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 cryinkfly added the bug Something isn't working label Aug 10, 2024
@cryinkfly cryinkfly changed the title Signing in doesnt return me back to the application (flatpak bottle) Bottles (Flatpak) - Signing in doesnt return me back to the application Aug 10, 2024
@cryinkfly
Copy link
Owner

cryinkfly commented Aug 10, 2024

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
Copy link

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

@ficolas2
Copy link
Author

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
Copy link
Owner

cryinkfly commented Aug 11, 2024

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

@ficolas2
Copy link
Author

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
Copy link

n3oney commented Aug 18, 2024

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
Copy link

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
Copy link

youzen commented Aug 29, 2024

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
Copy link

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
Copy link

marrrkus commented Sep 4, 2024

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

@echow2001
Copy link

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

@cryinkfly cryinkfly added the documentation Improvements or additions to documentation label Oct 7, 2024
@Clumsy-Coder
Copy link

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

@alfonder
Copy link

alfonder commented Dec 18, 2024

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

@CzechBlueBear
Copy link

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.

@alexcg1
Copy link

alexcg1 commented Jan 9, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests