Shihira / gnome-extension-quicktoggler

DEPRECATED: Switched to KDE, so goodbye friends. Toggling services, launching apps in one click.
https://extensions.gnome.org/extension/1077/quick-toggler/
40 stars 9 forks source link

Updating the extension does not keep settings #3

Open Id2ndR opened 7 years ago

Id2ndR commented 7 years ago

Updating the extension through Gnome overide the existing entries.json.

Shihira commented 7 years ago

Because the GNOME extension way of installation doesn't provide options like gitignore or masks to prevent some specified to be updated, I have no idea how to keep old built-in configuration file.

So I added a new strategy every time the extension starts: defaultly use ~/.entries.json, and if that doesn't exist, copy the one in extension directory to home directory. You can still specify the path of your own configuration in the preference window and also, the extension will create a new one for you if that path is invalid.

Hope it helps.