Realm Not Working with Packaged Electron App

Hi Sam. Welcome to the forum! :slight_smile:

Just wanted to make sure you know that Realm Studio is an open source electron app using the Realm JS SDK: GitHub - realm/realm-studio: Realm Studio … perhaps you can find some inspiration in that.

More specifically you might be interested in the code that changes the current working directory of the renderer process to be a sub-directory of the userData directory: realm-studio/process-directories.ts at channel/major-13 · realm/realm-studio · GitHub … Realm Studio does this, since opening a synced Realm will create a directory named mongodb-realm (or realm-object-server pre v10 of the SDK) relative to the current working directory, containing metadata about the currently authenticated users.

3 Likes