From ddb32b16759666cb7a7ca1ef5a6a1f9399b965cb Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Wed, 16 Aug 2023 18:37:23 +0200
Subject: [PATCH] (Linux) Added missing Flatpak systempath rules for bsnes,
 Gargoyle, Hatari, Nestopia UE, openMSX, PCSX2, Play! and Snes9x

---
 resources/systems/unix/es_find_rules.xml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/resources/systems/unix/es_find_rules.xml b/resources/systems/unix/es_find_rules.xml
index e294cfde5..7dfe82ba5 100644
--- a/resources/systems/unix/es_find_rules.xml
+++ b/resources/systems/unix/es_find_rules.xml
@@ -95,6 +95,7 @@
         <!-- Super Nintendo/Super Famicom emulator bsnes -->
         <rule type="systempath">
             <entry>bsnes</entry>
+            <entry>dev.bsnes.bsnes</entry>
         </rule>
         <rule type="staticpath">
             <entry>/var/lib/flatpak/exports/bin/dev.bsnes.bsnes</entry>
@@ -289,6 +290,7 @@
         <!-- Interactive fiction player Gargoyle -->
         <rule type="systempath">
             <entry>gargoyle</entry>
+            <entry>io.github.garglk.Gargoyle</entry>
         </rule>
         <rule type="staticpath">
             <entry>~/Applications/Gargoyle*.AppImage</entry>
@@ -324,6 +326,7 @@
         <!-- Atari ST/STE/TT/Falcon emulator Hatari -->
         <rule type="systempath">
             <entry>hatari</entry>
+            <entry>org.tuxfamily.hatari</entry>
         </rule>
         <rule type="staticpath">
             <entry>/var/lib/flatpak/exports/bin/org.tuxfamily.hatari</entry>
@@ -430,6 +433,7 @@
         <!-- Nintendo NES and Famicom emulator Nestopia UE -->
         <rule type="systempath">
             <entry>nestopia</entry>
+            <entry>ca._0ldsk00l.Nestopia</entry>
         </rule>
         <rule type="staticpath">
             <entry>/var/lib/flatpak/exports/bin/ca._0ldsk00l.Nestopia</entry>
@@ -440,6 +444,7 @@
         <!-- MSX home computer emulator openMSX -->
         <rule type="systempath">
             <entry>openmsx</entry>
+            <entry>org.openmsx.openMSX</entry>
         </rule>
         <rule type="staticpath">
             <entry>/var/lib/flatpak/exports/bin/org.openmsx.openMSX</entry>
@@ -462,6 +467,7 @@
         <!-- Sony PlayStation 2 emulator PCSX2 -->
         <rule type="systempath">
             <entry>pcsx2-qt</entry>
+            <entry>net.pcsx2.PCSX2</entry>
         </rule>
         <rule type="staticpath">
             <entry>~/Applications/pcsx2*.AppImage</entry>
@@ -498,6 +504,9 @@
     </emulator>
     <emulator name="PLAY!">
         <!-- Sony PlayStation 2 emulator Play! -->
+        <rule type="systempath">
+            <entry>org.purei.Play</entry>
+        </rule>
         <rule type="staticpath">
             <entry>~/Applications/Play!*.AppImage</entry>
             <entry>~/.local/share/applications/Play!*.AppImage</entry>
@@ -511,9 +520,9 @@
         <!-- Sony PlayStation Portable emulator PPSSPP -->
         <rule type="systempath">
             <entry>ppsspp-emu.ppsspp-sdl</entry>
-            <entry>org.ppsspp.PPSSPP</entry>
             <entry>PPSSPPSDL</entry>
             <entry>PPSSPPQt</entry>
+            <entry>org.ppsspp.PPSSPP</entry>
         </rule>
         <rule type="staticpath">
             <entry>/var/lib/flatpak/exports/bin/org.ppsspp.PPSSPP</entry>
@@ -698,6 +707,7 @@
         <rule type="systempath">
             <entry>snes9x</entry>
             <entry>snes9x-gtk</entry>
+            <entry>com.snes9x.Snes9x</entry>
         </rule>
         <rule type="staticpath">
             <entry>~/Applications/Snes9x*.AppImage</entry>