MCPcopy Create free account
hub / github.com/cortexkit/magic-context / xdgConfigHome

Function xdgConfigHome

packages/cli/src/lib/opencode-detect.ts:108–112  ·  view source on GitHub ↗

XDG-aware config base used for the Linux Desktop userData location.

(d: DetectDeps)

Source from the content-addressed store, hash-verified

106
107/** XDG-aware config base used for the Linux Desktop userData location. */
108function xdgConfigHome(d: DetectDeps): string {
109 const xdg = d.env.XDG_CONFIG_HOME;
110 if (xdg && xdg.length > 0) return xdg;
111 return join(d.home, ".config");
112}
113
114/** Per-OS Electron userData dir for a given Desktop appId. */
115function desktopUserDataDir(d: DetectDeps, appId: string): string {

Callers 1

desktopUserDataDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected