Skip to content

Commit

Permalink
skip terminal check on flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jun 27, 2022
1 parent 9b51078 commit 036f1f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/utils/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def __init__(self):
self.terminal = None

def check_support(self):
if "FLATPAK_ID" in os.environ:
self.terminal = self.terminals[0]
return True

for terminal in self.terminals:
terminal_check = subprocess.Popen(
f"command -v {terminal[0]} > /dev/null && echo 1 || echo 0",
Expand Down

0 comments on commit 036f1f1

Please sign in to comment.