-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Dynamically detect the location of AdskidentityManager *solved* #391
Comments
This does the job to identify the current/latest install folder, not the nicest code I've ever written, but it gives the location we need dynamically
|
amended working Proof Of Concept script. Will add the same to Bottles once i get their infrastructure working as needed
|
Out of curiosity, if WGET with no clobber can tell when there is an update to the remote installation file, why don't we use that to initiate an update of the software? We could them make the script fully self contained, without reliance on remote repos, (i.e a fully version locked script that can be downloaded and run stand alone) or tracking a text file for updates. |
alternatively we can also scrape the information we need out of the SQLite DB at C:/Program Files/Autodesk/webdeploy/meta/registry and browse the record in the tblAPPLICATIONS something along the lines of SELECT * FROM tblAPPLICATIONS WHERE LIKE '%AdskIdentityManager.exe' (Assuming SQLite is similar to Transact SQL) |
So will this ultimately solve the issue with Fusion login? I cannot seem to fix that issue. This script runs nicely, but when you hit "login" on the Fusion360 splash page it acts like the browser should open, but nothing happens and eventually you get a snap error (ubuntu) |
This would help redirect the login from the web browser back to the application. If you are unable to get your web browser to open from the Fusion application, it's most likely that the version of Wine you are using doesn't have the required patch that was made part of Wine 8.14 and higher that can handle the pressing "login" button and then opening the web browser |
I am running Wine 9.2 on Ubuntu. I am on a completely clean install of 23.10 sudo apt-get update Then I run your script above. However I noted that the registry call wasn't looking in the correct place to return the registry key that gives you the path to the Identity Manager. Shouldn't it be: ADSKCUR=$(WINEPREFIX=$ROOTFOLDER/wineprefixes/default wine reg query "HKLM\Software\Classes\fusion360\shell\open\command" /ve | sed "s/ (Default) REG_SZ "//" | sed "s/HKEY_LOCAL_MACHINE\\Software\\Classes\\fusion360\\shell\\open\\command//" | sed '/^[[:space:]]*$/d' | sed "s/NLauncher.exe" "%1"//") I added the <WINEPREFIX=$ROOTFOLDER/wineprefixes/default>. Otherwise on my system the original code would return an error of "not found"... Thoughts? Am I installing wine incorrectly? |
The login problem is split in 3.5 steps:
|
Thanks - that's very helpful. So aside from 8.14 (since I installed 9.2), what else is required to spawn that native browser? (your first bullet above) I believe it's stuck there. Are there registry settings i need to change? The Autodesk greeting window does change - below the "sign in" box it inially says "we will take you to your web browser to sign in, then bring you back here." and the window is active and you can close it. When you hit "sign in", the message changes to "check your web browser to sign in", and the window basically locks and you can no longer close it. In fact the only way to kill it is to find the process or just log out. It would be helpful to understand what's going on behind the scenes I assume. I will see if I can figure out how to launch it in a terminal window to see if there are any messages... |
Hi @alextrical, just small finding. To make your |
Hopefully that amendment can be added into the main script by @cryinkfly For what it's worth the sed command I've used is almost certainly a lot more convoluted than a search and replace could be by using some smarter/cleaner regex |
I see You eddited Your PoC, but it somehow apend double Steps:
Edit: For clarification, code above is meant to reproduce error, not to show correct way to do it.
Should be:
|
Thanks @Tony763 ! One small issue. Also in Bottles, I had to change from |
Thank you for the update, I will get that added into the code above. The fix we needed to get the login to work was added into wine in 8.14, any version after that also works. I've been trying to get the bottles install scrip working, but they are still missing some fundamental options needed for this kind of install. Their manifests can't check for a minimum version of Wine, not does it look like there is a way to create a mimetype on the host. It's close but yet so far from working how I hoped |
I can't get it to run with bottles, I tried to execute the exec command with flatpak. but have no success
|
under bottles, the browser login works and launches AdskIdentitymanager, but the identity manager does not login fusion ubuntu 23.10 |
anybody got this working through bottles? im very new at this type of stuff i used to have fusion working fine with bottles but from this new update its rendered it useless, ive tried to edit the .desktop file with the install directory with bottles but after i click sign in then it says open xdp then nothing happens any help is appreciated |
Check #393 |
another way to find AdskIdentityManager.exe
|
Hi @Thermionix, nice way, but its only onetime search. To make it truly dynamic, |
well, this works for me; but I'm not running it within a prefix
|
to do that within the script, escape the subshell so it prints;
output:
|
With a help from friend, this should do exactly what we need.
Test it if You can, please. |
Describe the bug
the location of AdskidentityManager.exe changes with every update, resulting in more maintenance of the .desktop mimetype link.
I see this is resulting in a lot of chatter, and i'm not sure if the main script includes the creation of the .desktop and registering of it as a default mimetype.
@cryinkfly
The solution to this came to me while talking to @dzervas
We can use the registry values from Fusion to track the correct latest folder, and utilize that at the time we create the desktop link. Every following update will also need to update it.
I will start drafting up the script tomorrow. But for now there may need to be a central post on the main page to address the influx of issues
The text was updated successfully, but these errors were encountered: