-
Notifications
You must be signed in to change notification settings - Fork 173
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
[BUG] Plugins installed with zip or link do not show up until decky restarts #527
Comments
Hello. I came across this as well when I had to install TabMaster's new update and did a bit more digging through the code to figure out the problem, it seems to be due to the code in First issue is when the function tries to determine if the plugin is already installed, it fails this check until the ZIP file is named exactly the same as the plugin name decky-loader/backend/src/browser.py Line 166 in 9295e4b
Any ZIP which is not named exactly as the plugin name will fail this check always and will assume the plugin is not installed already. decky-loader/backend/src/browser.py Lines 111 to 120 in 9295e4b
This piece of code is never executed as a result of the failed check decky-loader/backend/src/browser.py Lines 206 to 212 in 9295e4b
And this is the final bit of mistake. ZIP is extracted, but since the decky-loader/backend/src/browser.py Lines 214 to 219 in 9295e4b
Install from ZIP/URL will correctly work only if the ZIP file is named the same as the plugin name. |
This ultimately boils down to what "name" is assigned when requesting to install the plugin. When using the plugin storefront or reinstalling it, the plugin name is provided directly from the frontend. While install from URL, it instead strips out the .zip extension from the filename and uses it as the name. decky-loader/frontend/src/store.tsx Lines 73 to 90 in 9295e4b
The best suggestion I have is to fetch the ZIP and read the plugin.json directly from the ZIP to get the plugin name correctly while installing from developer mode. |
Good job figuring that one out, thank you. |
* fix: get plugin name for dev builds from ZIP (#527) Signed-off-by: eXhumer <[email protected]>
* fix: get plugin name for dev builds from ZIP (#527) Signed-off-by: eXhumer <[email protected]>
This was fixed a while ago, forgot to close the issue. Thanks for this! |
Please confirm
Bug Report Description
Install a plugin with zip or with link in the developer settings, it will not show up in the plugins list until decky restarts (restarting the frontend alone does not fix it, so it's a problem in the backend). Looking through the code, I can't really tell why this happens, as the function calls look the same. (maybe the InstallType is wrong?)
Expected Behaviour
The plugin should appear right away.
SteamOS version
SteamOS 3.5 Main, and my EndevourOS desktop
Selected Update Channel
Prerelease
Have you modified the read-only filesystem at any point?
No response
Logs
deckylog.txt
The text was updated successfully, but these errors were encountered: