Disabled terminal usage in flatpaks

This commit is contained in:
Observer KRypt0n_ 2022-02-05 22:35:58 +02:00
parent a97ecec4fe
commit 43d0b0f5e8
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA

View file

@ -1,12 +1,11 @@
import { Process, Windows, Configs, Notification, path, Package } from '../../../empathize'; import { Process, Windows, Configs, Notification, path, Package } from '../../../empathize';
import { DebugThread } from '@empathize/framework/dist/meta/Debug'; import { DebugThread } from '@empathize/framework/dist/meta/Debug';
import type Launcher from '../../Launcher';
import constants from '../../Constants'; import constants from '../../Constants';
import Runners from '../../core/Runners'; import Runners from '../../core/Runners';
import Game from '../../Game'; import Game from '../../Game';
import Locales from '../Locales'; import Locales from '../Locales';
import Launcher from '../../Launcher';
declare const Neutralino; declare const Neutralino;
@ -161,8 +160,10 @@ export default (launcher: Launcher): Promise<void> => {
* Use terminal * Use terminal
* *
* bash -c "<command> && bash" is required to keep terminal open * bash -c "<command> && bash" is required to keep terminal open
*
* Doesn't work in flatpak
*/ */
if (await Configs.get('use_terminal')) if (!await Launcher.isFlatpak() && await Configs.get('use_terminal'))
{ {
// Gnome // Gnome
if (await Package.exists('gnome-terminal')) if (await Package.exists('gnome-terminal'))