deanoemcke / spaces

MIT License
66 stars 32 forks source link

Transferring spaces from chrome store version #4

Closed themightychris closed 6 years ago

themightychris commented 6 years ago

I just installed the latest version from GitHub. I notice it has a new backup all spaces button, but my chrome still version is still installed too, has all my spaces, and has no such button. Is there a way to go under the hook and cp some data files around to migrate all my spaces to the github build?

deanoemcke commented 6 years ago

it might be possible. i'm not sure. the extension uses an indexedDb database to store the spaces, it might be a simple as copying that indexedDb file across from one extension directory into the other?

would be keen to hear if you have any success with this.

alternatively, you could use something like session buddy to export each space. but that would involve you opening each one up :/

themightychris commented 6 years ago

I have both running in chrome at once, maybe I could inspect both and string together some sort of dump/load in my console with copy(JSON.stringify(...))

I'll try to dig in at some point, any clues you might lend to help me find the right part would be appreciated!

themightychris commented 6 years ago

nooooo after chrome updated last night the chrome store version got marked as "possibly corrupted" and the repair button worked but blew out all my spaces :'(

deanoemcke commented 6 years ago

oh god. i'm so sorry. had you modified some of the files in the extension directory? I've never had an extension corrupt before. are you on osx? if so, you might have an old version of your indexedDb database file in your timemachine?

the files should be in a folder something like /Users/xxx/Library/Application Support/Google/Chrome/Profile.../ doing a filesearch (with spotlight) for nlnolkpmalnodndkndgjjehgmkepgdjn is sometimes easier too. that is the extension id of the webstore version.

if you manage to get something back, i'll try to help you with exporting your sessions.

themightychris commented 6 years ago

Thanks! This was on an OSX box where I hadn't messed with extensions at all, I was just using the version from the chrome web store. After chrome restarted for an update that introduced a new extensions manager UI, Spaces was corrupt. No time machine backups unfortunately but I'll dig around.

I should mention I run Canary as my main browser soooo that's probably my fault

themightychris commented 6 years ago

I suppose this issue becomes a moot point once a version with the new "backup all spaces" feature ships to the webstore, that will enable existing users to export their spaces and from then on it will be easy to switch between the webstore version and github builds