Skip to content

Commit

Permalink
Make pkexec appear less for installs
Browse files Browse the repository at this point in the history
If the remote that is being used for the install is a user remote, then pkexec will never trigger for the install loop
  • Loading branch information
heliguy4599 committed Sep 12, 2023
1 parent 0d2e0fb commit d7c9a8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ def thread_func(id_list, remote):
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:
Expand Down

0 comments on commit d7c9a8f

Please sign in to comment.