shared: common: Introduce ipcSocketPath()

This commit is contained in:
Albert S. 2022-04-24 12:12:23 +02:00
vanhempi e8f095f821
commit 84e13e432b
2 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa

Näytä tiedosto

@ -15,6 +15,7 @@
#define SETTINGS_KEY_DBPATH "dbpath"
#define SETTINGS_KEY_FIRSTRUN "firstrun"
#define SETTINGS_KEY_IPCSOCKETPATH "ipcsocketpath"
inline void initResources()
{
@ -103,3 +104,9 @@ QString Common::databasePath()
}
return env;
}
QString Common::ipcSocketPath()
{
QSettings settings;
return settings.value(SETTINGS_KEY_IPCSOCKETPATH, "/tmp/looqs-spawner").toString();
}

Näytä tiedosto

@ -6,6 +6,7 @@ namespace Common
{
void setupAppInfo();
QString databasePath();
QString ipcSocketPath();
bool initSqliteDatabase(QString path);
void ensureConfigured();
} // namespace Common