Processed some earlier review comments
Summary: Per title, processed some pending review comments made earlier in this stack Reviewed By: aigoncharov Differential Revision: D32916920 fbshipit-source-id: 01db85883596b5c85b77efc9cddadeac23cc4ef5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3c6668a8b9
commit
92a743cc59
@@ -14,6 +14,9 @@ import fs from 'fs-extra';
|
||||
import TOML, {JsonMap} from '@iarna/toml';
|
||||
import {LauncherSettings, ReleaseChannel} from 'flipper-common';
|
||||
|
||||
// There is some disagreement among the XDG Base Directory implementations
|
||||
// whether to use ~/Library/Preferences or ~/.config on MacOS. The Launcher
|
||||
// expects the former, whereas `xdg-basedir` implements the latter.
|
||||
export function xdgConfigDir() {
|
||||
return os.platform() === 'darwin'
|
||||
? path.join(os.homedir(), 'Library', 'Preferences')
|
||||
@@ -28,9 +31,6 @@ export function launcherConfigDir() {
|
||||
}
|
||||
|
||||
function getLauncherSettingsFile(): string {
|
||||
// There is some disagreement among the XDG Base Directory implementations
|
||||
// whether to use ~/Library/Preferences or ~/.config on MacOS. The Launcher
|
||||
// expects the former, whereas `xdg-basedir` implements the latter.
|
||||
return path.resolve(launcherConfigDir(), 'flipper-launcher.toml');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user