From 5868b4f0f93b0dd0e8de978b809ab7450bc4d974 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Thu, 23 Aug 2018 19:50:09 +0100 Subject: [PATCH] Use a different hint on each platform --- client/src/modules/settings.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/modules/settings.js b/client/src/modules/settings.js index 91f436cf..84db1674 100644 --- a/client/src/modules/settings.js +++ b/client/src/modules/settings.js @@ -13,6 +13,7 @@ import { EmoteModule } from 'builtin'; import { SettingsSet } from 'structs'; import { FileUtils, ClientLogger as Logger } from 'common'; import path from 'path'; +import process from 'process'; import Globals from './globals'; import CssEditor from './csseditor'; import Events from './events'; @@ -39,6 +40,12 @@ export default new class Settings { return set; }); + + // Set a hint for each platform for the use-keytar setting + const useKeytarSetting = this.getSetting('security', 'default', 'use-keytar'); + if (process.platform === 'win32') useKeytarSetting.hint = 'Store the master password in Credential Manager'; + if (process.platform === 'darwin') useKeytarSetting.hint = 'Store the master password in the default keychain'; + if (process.platform === 'linux') useKeytarSetting.hint = 'Store the master password in libsecret'; } /**