Use the daemon when we don't have write access to the Nix database

This commit is contained in:
Eelco Dolstra 2016-01-31 10:19:14 +01:00
parent 4fa08f3edb
commit 9e7c1a4bbd
7 changed files with 57 additions and 13 deletions

View file

@ -253,6 +253,12 @@ private:
int getSchema();
public:
static bool haveWriteAccess();
private:
void openDB(bool create);
void makeStoreWritable();