Fix socket getting placed in XDG_CONFIG_HOME instead of data home (#1846)

This commit is contained in:
Sapphire authored and loucass003 committed 2026-05-18 22:08:01 +02:00
1 parent 4b239e892e
commit b522c82af3
1 file changed
+1 -1
@@ -41,7 +41,7 @@ enum class OperatingSystem(
if (currentPlatform == LINUX) {
val isPressureVessel = System.getenv("PRESSURE_VESSEL_RUNTIME")?.isNotEmpty() == true
if (isPressureVessel) {
dir = System.getenv("XDG_CONFIG_HOME")?.let { Path(it, SLIMEVR_IDENTIFIER).toString() }
dir = System.getenv("XDG_DATA_HOME")?.let { Path(it, SLIMEVR_IDENTIFIER).toString() }
?: System.getenv("HOME")?.let { Path(it, ".local", "share", SLIMEVR_IDENTIFIER).toString() }
if (dir != null) return dir
}