Properties window shows dependant runtimes

This commit is contained in:
heliguy
2023-10-04 12:05:56 -04:00
parent d83a7b74f1
commit 08234524b8
2 changed files with 6 additions and 1 deletions

View File

@@ -108,6 +108,11 @@ class myUtils:
for line in lines[1:]:
row = line.split("\t")
data.append(row)
output = subprocess.run(["flatpak-spawn", "--host", "flatpak", "list", "--columns=runtime"], capture_output=True, text=True, env=self.new_env).stdout
lines = output.strip().split("\n")
for i in range(len(lines)):
data[i].append(lines[i])
return data
def uninstallFlatpak(self, ref_arr, type_arr, should_trash):

View File

@@ -106,7 +106,7 @@ def show_properties_window(widget, index, window):
properties_box.append(user_data_list)
column_headers = [_('Name'), _('Description'), _('App ID'), _('Version'), _('Branch'), _('Arch'), _('Origin'), _('Installation'), _('Ref'), _('Active Commit'), _('Latest Commit'), _('Installed Size'), _('Options')]
column_headers = [_('Name'), _('Description'), _('App ID'), _('Version'), _('Branch'), _('Arch'), _('Origin'), _('Installation'), _('Ref'), _('Active Commit'), _('Latest Commit'), _('Installed Size'), _('Options'), _('Runtimes')]
for column in range(len(window.host_flatpaks[index])):
if window.host_flatpaks[index][column] == "":
continue