XDG-aware config base used for the Linux Desktop userData location.
(d: DetectDeps)
| 106 | |
| 107 | /** XDG-aware config base used for the Linux Desktop userData location. */ |
| 108 | function 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. */ |
| 115 | function desktopUserDataDir(d: DetectDeps, appId: string): string { |
no outgoing calls
no test coverage detected