Save launcher settings to the correct folder

Summary: Rust default configuration path changed recently which broke transferring of settings between flipper desktop and launcher. This diff fixes it.

Reviewed By: passy

Differential Revision: D25334963

fbshipit-source-id: d6ebea9e5cfa68858a9fc2a51102815d646ab319
This commit is contained in:
Anton Nikolaev
2020-12-04 10:20:50 -08:00
committed by Facebook GitHub Bot
parent 139c6674f3
commit 2a091e682d

View File

@@ -24,9 +24,7 @@ const xdgConfigDir = () =>
export const launcherConfigDir = () => export const launcherConfigDir = () =>
path.join( path.join(
xdgConfigDir(), xdgConfigDir(),
os.platform() == 'darwin' os.platform() == 'darwin' ? 'rs.flipper-launcher' : 'flipper-launcher',
? 'rs.flipper-launcher.flipper-launcher'
: 'flipper-launcher',
); );
export function initLauncherHooks(config: ProcessConfig, store: Store) { export function initLauncherHooks(config: ProcessConfig, store: Store) {