Allow user install icons to show up in list

This commit is contained in:
heliguy
2023-09-02 13:25:44 -04:00
parent 571221b4bd
commit 45f9b141df
2 changed files with 3 additions and 2 deletions

View File

@@ -12,8 +12,8 @@
"--socket=wayland",
"--talk-name=org.freedesktop.Flatpak",
"--filesystem=/var/lib/flatpak/:ro",
"--filesystem=~/.local/share/flatpak/exports/share/icons/:ro",
"--filesystem=~/.var/app/:rw"
"--filesystem=~/.local/share/flatpak/:ro",
"--filesystem=~/.var/app/"
],
"cleanup" : [
"/include",

View File

@@ -54,6 +54,7 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
icon_theme = Gtk.IconTheme.new()
icon_theme.add_search_path("/var/lib/flatpak/exports/share/icons/")
icon_theme.add_search_path(host_home + "/.local/share/flatpak/exports/share/icons")
print(pathlib.Path(host_home + "/.local/share/flatpak/exports/share/icons").exists())
#host_flatpak_ids = subprocess.run(['flatpak-spawn', '--host', 'flatpak', 'list', '--columns=application'], capture_output=True, encoding="utf-8").stdout.split("\n")[:-1]
#host_flatpak_names = subprocess.run(['flatpak-spawn', '--host', 'flatpak', 'list', '--columns=name'], capture_output=True, encoding="utf-8").stdout.split("\n")[:-1]