mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-20 17:01:47 +03:00
Disabled terminal usage in flatpaks
This commit is contained in:
parent
a97ecec4fe
commit
43d0b0f5e8
1 changed files with 4 additions and 3 deletions
|
@ -1,12 +1,11 @@
|
|||
import { Process, Windows, Configs, Notification, path, Package } from '../../../empathize';
|
||||
import { DebugThread } from '@empathize/framework/dist/meta/Debug';
|
||||
|
||||
import type Launcher from '../../Launcher';
|
||||
|
||||
import constants from '../../Constants';
|
||||
import Runners from '../../core/Runners';
|
||||
import Game from '../../Game';
|
||||
import Locales from '../Locales';
|
||||
import Launcher from '../../Launcher';
|
||||
|
||||
declare const Neutralino;
|
||||
|
||||
|
@ -161,8 +160,10 @@ export default (launcher: Launcher): Promise<void> => {
|
|||
* Use terminal
|
||||
*
|
||||
* 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
|
||||
if (await Package.exists('gnome-terminal'))
|
||||
|
|
Loading…
Reference in a new issue