gristlabs / grist-desktop

Desktop Grist, packaged with Electron
Apache License 2.0
166 stars 7 forks source link

How do I configure the data directory for the AppImage? #20

Closed ReedyBear closed 10 months ago

ReedyBear commented 10 months ago

I'm running Grist-electron locally with the AppImage on Fedora. The default data dir is ~/Documents/ & I'd like my data to be stored elsewhere.

How can I do that?

(I already figured it out. I'm just putting this here so other people can find it. Answer coming momentarily.)

ReedyBear commented 10 months ago

The easiest way I found is to set the environment variable before launching the AppImage. So I made a bash script that which launches grist, like:

#!/usr/bin/bash
export GRIST_DATA_DIR="/home/reed/projects/grist/"
/home/reed/apps/Grist.AppImage

I run that script, and now Grist is using that projects dir to store my .grist data file (the sqlite db).