diff --git a/src/common.py b/src/common.py index 5444377..a9b2958 100644 --- a/src/common.py +++ b/src/common.py @@ -77,6 +77,13 @@ class myUtils: image.set_icon_size(Gtk.IconSize.LARGE) return image + def getHostPins(self): + output = subprocess.run(["flatpak-spawn", "--host", "flatpak", "pin"], capture_output=True, text=True, env=self.new_env).stdout + data = output.strip().split("\n") + for i in range(len(data)): + data[i] = data[i].strip() + return data + def getHostRemotes(self): output = subprocess.run(["flatpak-spawn", "--host", "flatpak", "remotes", "--columns=all"], capture_output=True, text=True, env=self.new_env).stdout lines = output.strip().split("\n") diff --git a/src/window.py b/src/window.py index 69314c8..77c729c 100644 --- a/src/window.py +++ b/src/window.py @@ -548,4 +548,3 @@ class WarehouseWindow(Adw.ApplicationWindow): self.filter_button.connect("toggled", self.filterWindowHandler) -