SteamDeckHomebrew / decky-loader

A plugin loader for the Steam Deck.
https://decky.xyz
GNU General Public License v2.0
4.49k stars 156 forks source link

Reload Plugin Action in plugins list should also reload backend #230

Open TheLogicMaster opened 1 year ago

TheLogicMaster commented 1 year ago

Currently, the reload action in the plugins list seems to just reload the front-end, and I don't see any server API which would facilitate a backend plugin reload in the first place. This would be an easy way to completely reload the plugin module without redeploying or restarting. Should just be a matter of adding an additional API endpoint that connects to the plugin loader.

L0WR1D3Rz commented 1 year ago

+1. I'm on the latest preview build and decky isn't working anymore. Icon doesn't appear after having followed the steps correctly. Is this actively being worked on?

TrainDoctor commented 1 year ago

+1. I'm on the latest preview build and decky isn't working anymore. Icon doesn't appear after having followed the steps correctly. Is this actively being worked on?

This is not the issue relevant to what your experiencing. Please install the latest pre-release of decky-loader if you're on beta or preview branches of SteamOS.

L0WR1D3Rz commented 1 year ago

I accidentally posted it in the wrong issue thread apologies. Your solution doesn't solve it. Decky isn't working on latest preview. I tried uninstalling decky reboot install latest pre-release, reboot and nothing. Decky doesn't startup. I'll post this in the right thread now also.

TrainDoctor commented 1 year ago

https://github.com/SteamDeckHomebrew/decky-loader/blob/fix-desktop-mode-loop/backend/main.py#L87

todo: Define new route with handler function, then:

  1. stop plugin
  2. delete from plugin array
  3. re-add plugin to array
  4. start plugin
  5. JS will call route (js will be handled by AA)
TrainDoctor commented 1 year ago

Started initial work on this feature on the SteamDeckHomebrew/decky-loader/tree/train/backend-reloads