Officially support the system tray on Linux, in beta only

This commit is contained in:
Evan Hahn 2021-06-29 14:29:40 -05:00 committed by GitHub
parent af1f2ea449
commit 8b30fc17cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 40 additions and 22 deletions

View file

@ -2,6 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import * as OS from '../OS';
import { isBeta } from '../util/version';
const MIN_WINDOWS_VERSION = '8.0.0';
@ -53,7 +54,7 @@ export const getTitleBarVisibility = (): TitleBarVisibility =>
/**
* Returns `true` if you can minimize the app to the system tray. Users can override this
* option with a command line flag, but that is not officially supported.
*
* We may add support for Linux in the future.
*/
export const isSystemTraySupported = OS.isWindows;
export const isSystemTraySupported = (appVersion: string): boolean =>
// We eventually want to support Linux in production.
OS.isWindows() || (OS.isLinux() && isBeta(appVersion));