From b1437a4c5e835259208b3ae6777561e36d2e6351 Mon Sep 17 00:00:00 2001 From: Faugus <112667550+Faugus@users.noreply.github.com> Date: Sun, 7 Jul 2024 13:31:18 -0300 Subject: [PATCH] Flatpak Experimental --- faugus-launcher-flatpak.desktop | 2 +- faugus-launcher-flatpak.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/faugus-launcher-flatpak.desktop b/faugus-launcher-flatpak.desktop index 091b834..098fa8a 100644 --- a/faugus-launcher-flatpak.desktop +++ b/faugus-launcher-flatpak.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Type=Application Name=Faugus Launcher -Exec=/usr/bin/flatpak run org.faugus.launcher +Exec=/usr/bin/flatpak run com.faugus.launcher Icon=com.faugus.launcher Categories=Utility; diff --git a/faugus-launcher-flatpak.py b/faugus-launcher-flatpak.py index 60898cd..f324838 100644 --- a/faugus-launcher-flatpak.py +++ b/faugus-launcher-flatpak.py @@ -344,7 +344,7 @@ class Main(Gtk.Window): image.set_from_pixbuf(scaled_pixbuf) if not os.path.exists(new_icon_path): - image_path = "/app/share/icons/com.faugus.launcher.png" + image_path = "/app/share/icons/hicolor/128x128/apps/com.faugus.launcher.png" pixbuf = GdkPixbuf.Pixbuf.new_from_file(image_path) scaled_pixbuf = pixbuf.scale_simple(50, 50, GdkPixbuf.InterpType.BILINEAR) @@ -507,7 +507,7 @@ class Main(Gtk.Window): icons_path = os.path.expanduser("~/.config/faugus-launcher/icons/") new_icon_path = os.path.join(icons_path, f"{title_formatted}.ico") if not os.path.exists(new_icon_path): - new_icon_path = "/app/share/icons/com.faugus.launcher.png" + new_icon_path = "/app/share/icons/hicolor/128x128/apps/com.faugus.launcher.png" # Get the directory containing the executable game_directory = os.path.dirname(path) @@ -1207,7 +1207,7 @@ class AddGame(Gtk.Dialog): def set_image_shortcut_icon(self): - image_path = "/app/share/icons/com.faugus.launcher.png" + image_path = "/app/share/icons/hicolor/128x128/apps/com.faugus.launcher.png" pixbuf = GdkPixbuf.Pixbuf.new_from_file(image_path) scaled_pixbuf = pixbuf.scale_simple(50, 50, GdkPixbuf.InterpType.BILINEAR)