diff --git a/lib/launcher/launcher.go b/lib/launcher/launcher.go index f69fb588..44b23c55 100644 --- a/lib/launcher/launcher.go +++ b/lib/launcher/launcher.go @@ -460,7 +460,9 @@ func (l *Launcher) hasLaunched() bool { func (l *Launcher) setupUserPreferences() { userDir := l.Get(flags.UserDataDir) - if userDir == "" { + pref := l.Get(flags.Preferences) + + if userDir == "" || pref == "" { return } @@ -474,12 +476,6 @@ func (l *Launcher) setupUserPreferences() { path := filepath.Join(userDir, profile, "Preferences") - pref := l.Get(flags.Preferences) - - if pref == "" { - pref = "{}" - } - utils.E(utils.OutputFile(path, pref)) }