gnome-extension-quicktoggler icon indicating copy to clipboard operation
gnome-extension-quicktoggler copied to clipboard

Updating the extension does not keep settings

Open Id2ndR opened this issue 8 years ago • 1 comments

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

Id2ndR avatar Jul 13 '16 04:07 Id2ndR

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.

Shihira avatar Jul 31 '16 08:07 Shihira