shared/gui: Add LOOQS_DISABLE_SANDBOX env to allow disabling sandboxing

Mainly for devs to check whether a problem is caused by sandboxing.
This commit is contained in:
2022-06-06 23:18:58 +02:00
parent 67189f34c6
commit 87ebc137d5
5 changed files with 26 additions and 1 deletions

View File

@ -157,6 +157,16 @@ QString Common::databasePath()
return env;
}
bool Common::noSandboxModeRequested()
{
QString env = getenv("LOOQS_DISABLE_SANDBOX");
if(env == "1")
{
return true;
}
return false;
}
QString Common::ipcSocketPath()
{
return "/tmp/.looqs/looqs-ipc-socket";