From d7c9a8f73eb35a8db2881693894593515f24b88a Mon Sep 17 00:00:00 2001 From: heliguy4599 Date: Tue, 12 Sep 2023 02:32:47 -0400 Subject: [PATCH] Make pkexec appear less for installs If the remote that is being used for the install is a user remote, then pkexec will never trigger for the install loop --- src/window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window.py b/src/window.py index 08cdc7c..f930bc6 100644 --- a/src/window.py +++ b/src/window.py @@ -356,6 +356,9 @@ class FlattoolGuiWindow(Adw.ApplicationWindow): try: subprocess.run(['flatpak-spawn', '--host', 'flatpak', 'install', '-y', remote[0], f'--{remote[1]}', id_list[i]], capture_output=False, check=True) except subprocess.CalledProcessError: + if remote[1] == "user": + self.install_success = False + continue try: subprocess.run(['flatpak-spawn', '--host', 'pkexec', 'flatpak', 'install', '-y', remote[0], f'--{remote[1]}', id_list[i]], capture_output=False, check=True) except subprocess.CalledProcessError: