MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / settingsFilePath

Function settingsFilePath

src/core/GpuSelector.cpp:160–170  ·  view source on GitHub ↗

The AppSettings file path, reproduced by hand — applyAtStartup() runs before QApplication, where QStandardPaths is unavailable and AppSettings must not be constructed. Mirrors main.cpp's UiScale bootstrap and AppSettings's own GenericConfigLocation layout.

Source from the content-addressed store, hash-verified

158// constructed. Mirrors main.cpp's UiScale bootstrap and AppSettings's own
159// GenericConfigLocation layout.
160QString settingsFilePath()
161{
162#if defined(Q_OS_MAC)
163 return QDir::homePath() + QStringLiteral("/Library/Preferences/AetherSDR/AetherSDR.settings");
164#elif defined(Q_OS_WIN)
165 return QDir::fromNativeSeparators(qEnvironmentVariable("LOCALAPPDATA"))
166 + QStringLiteral("/AetherSDR/AetherSDR.settings");
167#else
168 return QDir::homePath() + QStringLiteral("/.config/AetherSDR/AetherSDR.settings");
169#endif
170}
171
172// Startup read: parse the persisted "Graphics""gpu" id straight from the
173// settings XML. Constructing AppSettings::instance() this early would run its

Callers 5

readSavedIdFromFileFunction · 0.85
loadMethod · 0.85
saveMethod · 0.85
loadBindingsMethod · 0.85
saveBindingsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected