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 · 13 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
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

8 participants