Skip to content
This repository

Reinstall goes to suffixed directory #1515

Closed
arantius opened this Issue February 10, 2012 · 2 comments

2 participants

arantius mjh563
arantius
Collaborator

Install a script named foo; it will go inside a directory named "foo" inside gm_scripts. Reinstall it. It will go to "foo-1". After install, the old copy is uninstalled. A second reinstall will thus go to "foo", and repeat. Ideally re-installing the same script would keep the same install location.

mjh563

A related problem: reinstall a script, then go to the Add-ons Manager, right-click the script name and select Edit. The script can't be loaded, because it's still looking for it in the previous directory.

mjh563

It works OK after Firefox is restarted.

arantius arantius referenced this issue from a commit in arantius/greasemonkey February 24, 2012
arantius Do GM_config.install() _before_ putting a RemoteScript's files in place.
This cleans the old script's files out first, so the names on disk do not collide.

Fixes: #1515, #1520
3caceb2
arantius arantius closed this February 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.