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

Cant login on flatpak version #393

Closed TRMiner1 closed 3 months ago

TRMiner1 commented 4 months ago

Describe the bug Cant sign in on flatpak version

To Reproduce download bottles from kde software center create bottle add fusion360 run click sign in "check your web browser to sign in" web browser is unchanged

Expected behavior my web browser should probably open

Screenshots n/a

Desktop:

Additional context i am using firefox i started using linux less than 2 months ago and i might not know what i am doing

EDIT: i will clarify that the computer: Graphics card model: NVIDIA GTX 750 ti + Graphics card driver (Version number): 535.161.07 Operating system: Kubuntu 23.10 (ubuntu but with kde) DXVK- or OpenGL-Mode: dxvk-2.3

was the actual final computer i wanted it running on, i had a steamdeck and thought i would see how well it would work because i was contemplating whether i should switch to linux on the computer it would actually run on and fusion 360 was the only software that i used that did not have a linux native version.

daranto commented 4 months ago

I have the same issue.

bigblzrd commented 4 months ago

Same issue here also, tried the normal install and had the same problem, managed to fix that but it wasn't running well so thought I'd try bottles.

TRMiner1 commented 4 months ago

update: i have tried it with a different computer and it still does not work Desktop: Graphics card model: NVIDIA GTX 750 ti + Graphics card driver (Version number): i still dont know Operating system: Kubuntu 23.10 (ubuntu but with kde) DXVK- or OpenGL-Mode: it says dxvk-2.3

DragonflyRobotics commented 4 months ago

I am having the same issue. The application crashes when I click the login button.

Hoeze commented 4 months ago

Same issue here. It does not crash, but it also does not open any browser window. I even tried installing firefox in the bottle.

nguypaul commented 4 months ago

Same issue for me as well.

Cxmrykk commented 4 months ago

I am using Debian 12 (Gnome) Flatpak Bottles, the browser login window opens for me if I use sys-wine-9.0 as the runner, however the link does not redirect to Fusion360 after logging in - "There are no available apps that can open this link adskidmgr:/login?code=(code)". My browser is Firefox

hotbrakepads commented 3 months ago

Same issue here. Tried native Firefox browser and also chrome based browser. None of the browsers open when clicking sign in button on Fusion flatpak.

Matt2D3 commented 3 months ago

for me, running through bottles opens the Linux native browser to the sign in page, however, i am not redirected to fusion360 and am not logged in caffe-8.21 ubuntu 23.10 firefox 123.0.1 (snap)

Matt2D3 commented 3 months ago

I switched over to the deb version of firefox and got a new error message wine: chdir to /home/matt2d2/.fusion360/wineprefixes/default : No such file or directory I think that whatever is redirecting the link from firefox to Adskidentitymanager is redirecting to the default prefix, not the bottles prefix

monte-monte commented 3 months ago

I am using Debian 12 (Gnome) Flatpak Bottles, the browser login window opens for me if I use sys-wine-9.0 as the runner, however the link does not redirect to Fusion360 after logging in - "There are no available apps that can open this link adskidmgr:/login?code=(code)". My browser is Firefox

Add shortcut to "Program Files/Autodesk/webdeploy/production/whatever_digits/Autodesk Identity Manager/AdskIdentityManager.exe" Then "Change Launch Options > Command Arguments > paste link from autodesk login page "adskidmgr:/login?code=*whatever numbers" Launch it, fusion should proceed with login.

Bombenscheck commented 3 months ago

Have Tested this. it does not work.

Add shortcut to "Program Files/Autodesk/webdeploy/production/_whateverdigits/Autodesk Identity Manager/AdskIdentityManager.exe" Then "Change Launch Options > Command Arguments > paste link from autodesk login page "adskidmgr:/login?code=*whatever numbers" Launch it, fusion should proceed with login.

The Link I got is much longer, it looks a bit different: adskidmgr:/login?code=whatever numbers"&state=some other numbers I tried it with both the Complete Version by Setting the Command Arguments to: %command%adskidmgr:/login?code=whatever numbers" and also with the Complete Link: %command%adskidmgr:/login?code=whatever numbers"&state=some other numbers* Did I do something wrong? Do i Need to only put in the Link without %command%

monte-monte commented 3 months ago

@Bombenscheck yes, you need to paste full link, ending with =, put it in quotation marks without %command% like that: image

Then I ran it in terminal, it print some output and main Fusion window then logs in, then you can close AdskIdentityManager. You need wine 9 or higher for this to work.

EDIT: you need link of the button that says "Go to product"

Bombenscheck commented 3 months ago

OK, my bad, did not add " at the Beginning and End Thank you for the help To sumarize for everyone facing the same Problem

  1. Use Sys Wine (I used 9.0) and not a Wine instance downloaded over Bottles
  2. Add shortcut to "Program Files/Autodesk/webdeploy/production/whatever_digits/Autodesk Identity Manager/AdskIdentityManager.exe" in Bottles (the login seems to have a Timeout later)
  3. Lauch Fusion360 and press Login
  4. Login should open in default Browser
  5. Close Fusion (System Side Browser will not close)
  6. Login Until the "Go to product" Links Shows
  7. Copy Link
  8. Add "Link" to the Launch options of AdskIdentityManager
  9. Launch AdskIdentityManager in Terminal
  10. Relaunch Fusion360 Fusion Should now be logged in.
monte-monte commented 3 months ago

5. Close Fusion (System Side Browser will not close)

You don't need to close fusion. Just launch AdskIdentityManager with current link and close it once Fusion window proceeds to load.

TRMiner1 commented 3 months ago

alright so i kinda forgot that i posted this for 3 weeks but after doing everything that was in the condensed version by Bombenscheck i have got it working sorta i think it might be a graphics driver/card issue because it starts and runs but the viewport is black and i cant see anything there, fullscreen breaks everything, when i move the window the menu at the left of the viewport(i have no idea what it is called but it has the bodies and stuff) lags and it stays visible when i minimize the window i am working on fixing it right now(maybe downgrading drivers will help?) thank you everyone for the responses

TRMiner1 commented 3 months ago

alright update already it seems the browser(menu thing) renders above all other windows

Bombenscheck commented 3 months ago

alright so i kinda forgot that i posted this for 3 weeks but after doing everything that was in the condensed version by Bombenscheck i have got it working sorta i think it might be a graphics driver/card issue because it starts and runs but the viewport is black and i cant see anything there, fullscreen breaks everything, when i move the window the menu at the left of the viewport(i have no idea what it is called but it has the bodies and stuff) lags and it stays visible when i minimize the window i am working on fixing it right now(maybe downgrading drivers will help?) thank you everyone for the responses

have you tried to set the graphics mode to "openGL Core"? fusion360 defaults to "Auto" which caused the same issiue on my install.

monte-monte commented 3 months ago

alright update already it seems the browser(menu thing) renders above all other windows

That's not fixable at the moment, if it bothers you too much the only way is to use wine's virtual desktop, but then it has it's own drawbacks.

have you tried to set the graphics mode to "openGL Core"? fusion360 defaults to "Auto" which caused the same issiue on my install.

In my experience if you use opengl, instead directx (via dxvk) it causes lines and points in sketch not highlighting when selected, very bad for productivity. I am using bottles with "kron4ek-wine-9.3-staging-tkg-amd64" build and dxvk-2.4 and it works both with AMD drivers and also with discrete nvidia card. At first I also had black screen, but fiddling with wine versions and setting somehow made everything work.

Ameb commented 3 months ago

have you tried to set the graphics mode to "openGL Core"? fusion360 defaults to "Auto" which caused the same issiue on my install.

This improved my issue #401 , thank you.

TRMiner1 commented 3 months ago

thank you everyone for the help. by changing graphics settings to opengl core it works i am seeing the weird highlighting things but this is way more usable than the web version(since creating the original issue i got educational access to see if the web version would work(it very much didn't)) and it is good enough for me to continue my projects

and it would be nice to see this added to the documentation

skarzzzz commented 3 months ago

I am using Debian 12 (Gnome) Flatpak Bottles, the browser login window opens for me if I use sys-wine-9.0 as the runner, however the link does not redirect to Fusion360 after logging in - "There are no available apps that can open this link adskidmgr:/login?code=(code)". My browser is Firefox

Add shortcut to "Program Files/Autodesk/webdeploy/production/_whateverdigits/Autodesk Identity Manager/AdskIdentityManager.exe" Then "Change Launch Options > Command Arguments > paste link from autodesk login page "adskidmgr:/login?code=*whatever numbers" Launch it, fusion should proceed with login.

how do you add the shortcut to that address, clicking add shortcut brings up the local drive how do i navigate to that through linux?

Ameb commented 3 months ago

how do i navigate to that through linux?

The "browse files" on bottles can show you where the "C drive" is located (for me it is in $HOME/.var/app/com.usebottles.bottles/data/bottles/bottles/<bottle_name>/drive_c/)

image

skarzzzz commented 3 months ago

how do i navigate to that through linux?

The "browse files" on bottles can show you where the "C drive" is located (for me it is in $HOME/.var/app/com.usebottles.bottles/data/bottles/bottles/<bottle_name>/drive_c/)

image

thankyou i did think that was t4he case just wasnt sure as it wasnt very clear haha

skarzzzz commented 3 months ago

OK, my bad, did not add " at the Beginning and End Thank you for the help To sumarize for everyone facing the same Problem

  1. Use Sys Wine (I used 9.0) and not a Wine instance downloaded over Bottles
  2. Add shortcut to "Program Files/Autodesk/webdeploy/production/whatever_digits/Autodesk Identity Manager/AdskIdentityManager.exe" in Bottles (the login seems to have a Timeout later)
  3. Lauch Fusion360 and press Login
  4. Login should open in default Browser
  5. Close Fusion (System Side Browser will not close)
  6. Login Until the "Go to product" Links Shows
  7. Copy Link
  8. Add "Link" to the Launch options of AdskIdentityManager
  9. Launch AdskIdentityManager in Terminal
  10. Relaunch Fusion360 Fusion Should now be logged in.

Okay so ive done everything on this list, when opening Adsk via terminal it opens but then nothing seems to happen on the terminal? then launching fusion proceeds to still ask for the login

skarzzzz commented 3 months ago

Kinda forgot to put quotations, so ive got it working now but theres some graphical issues the ui has loaded but i cant see the white background and i cant actually open a file Screenshot_20240323_180548

Ameb commented 3 months ago

Ensure you have quotes around the link "... While typing you got it solved, nice. The background issue is related to the graphics mode, you can set it to openGL Core like in https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/401#issuecomment-1993855862

First I would try to run on Dx9 with this combination of settings: https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux/issues/401#issuecomment-2003639665. You will need to add the runners to Bottles first. I don't think you need to create an install fusion again, just modify the settings on your existing bottle.

skarzzzz commented 3 months ago

So I tried to do those settings now it just crashes and I can’t access the program to revert the settings back, I don’t know where the Nmachine file is either as I don’t have a .fusion folder

Ameb commented 3 months ago

The settings file can be locate in the bottles windows path drive_c/users/$USER/AppData/Roaming/Autodesk/Neutron Platform/Options/NMachineSpecificOptions.xml

You can edit that file to edit settings without running the program. In my case, the preference dialog doesn't open and using Dx9 crashed fusion until I changed the runner.

I suggested to first try the Bottle settings, without touching Fusion preferences. Which fusion's preferences did you changed which crashed fusion? Did you modified the Bottle's settings?

At this point, I think we should add a discussion thread about running Fusion on the Steamdeck with flatpak. @TRMiner1 got it working before, maybe he can help.

skarzzzz commented 3 months ago

I’ll have a look at that path, I did just delete the bottle and reinstall it but now it doesn’t allow me to open the preferences inside of fusion like it did the first time, I’m using wine 9.0 that’s the only setting I’ve changed in bottle then inside fusion I changed it to OpenGL but for some odd reason it wouldn’t let me to select some stuff so I tried DX9 and that crashed it so I tried cafe instead of wine and it made no difference

skarzzzz commented 3 months ago

So I reinstalled fusion with bottles, did the adsk link to get logged in then I changed the graphics to OpenGL, re opened and it wouldn’t let me open a file it would just not do anything, so closed it changed to caffe, that didn’t want to open, so changed it back to wine 9.0 and now it opens the splash screen but then it just shuts down it doesn’t open anymore?