From 45f9b141df962a4b576aca8a0362f5198fe1d356 Mon Sep 17 00:00:00 2001 From: heliguy Date: Sat, 2 Sep 2023 13:25:44 -0400 Subject: [PATCH] Allow user install icons to show up in list --- io.github.heliguy4599.FlattoolGUI.json | 4 ++-- src/window.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/io.github.heliguy4599.FlattoolGUI.json b/io.github.heliguy4599.FlattoolGUI.json index 2f0bdf1..06528ba 100644 --- a/io.github.heliguy4599.FlattoolGUI.json +++ b/io.github.heliguy4599.FlattoolGUI.json @@ -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", diff --git a/src/window.py b/src/window.py index 6292f26..ec2a152 100644 --- a/src/window.py +++ b/src/window.py @@ -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]