replugged icon indicating copy to clipboard operation
replugged copied to clipboard

Uninstalling plugins doesn't work (Windows)

Open 12944qwerty opened this issue 2 years ago • 5 comments

Describe the bug

On Windows (only I believe), you can't uninstall plugins because of this error: Error: Error invoking remote method "REPLUGGED_UNINSTALL_PLUGIN": Error: EBUSY: resource busy or locked, unlink %AppData%\replugged\plugins\MyPlugin.asar

This only happens on asar plugins. I believe this is due to how electron uses asar files which blocks them from being edited (or deleted). We need a way to stop blocking asars when they're disabled while discord is still running.

Reproduction steps

  1. Install and enable plugin asar only
  2. Try uninstalling and check console

Expected behavior

To delete the plugin from the plugins directory completely.

Actual behavior

Plugin gets disabled but doesn't uninstall from directory. It is also removed from the plugin's list until you re-request for that list.

Additional information

No response

Please confirm the following

  • [X] I checked if Discord and Replugged are up to date
  • [X] I made sure this is not related to an external plugin or a theme
  • [X] I searched the issues to make sure this bug has not been reported before.

12944qwerty avatar Feb 05 '23 16:02 12944qwerty

Relevant so far. You have to remove plugins manually by turning off Discord.

authorless avatar Jul 28 '23 10:07 authorless

really should be fixed if they want more people to use it. because this is kinda a turnoff for many

yofukashino avatar Jul 28 '23 11:07 yofukashino

I can do the fix that someone suggested where there’s a list of plugins marked as to delete and it’s deleted on next load. It’s not a great permanent fix imo, but it should fix it for now.

bop34 avatar Jul 28 '23 11:07 bop34

Do you want to take this then?

asportnoy avatar Jul 28 '23 12:07 asportnoy

I asked on stackoverflow but got no responses there... try your luck

12944qwerty avatar Jul 28 '23 18:07 12944qwerty