mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Add get pins function
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -548,4 +548,3 @@ class WarehouseWindow(Adw.ApplicationWindow):
|
||||
self.filter_button.connect("toggled", self.filterWindowHandler)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user