{
 "app_id": "org.DolphinEmu.dolphin-emu",
 "source_url": "https://raw.githubusercontent.com/flathub/org.DolphinEmu.dolphin-emu/master/org.DolphinEmu.dolphin-emu.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host:ro",
  "--filesystem=xdg-run/gamescope-0:ro",
  "--allow=bluetooth",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=org.mate.ScreenSaver",
  "--talk-name=org.xfce.ScreenSaver"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T17:18:58.695327+00:00",
 "manifest": {
  "app-id": "org.DolphinEmu.dolphin-emu",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "command": "dolphin-emu-wrapper",
  "rename-desktop-file": "dolphin-emu.desktop",
  "rename-icon": "dolphin-emu",
  "finish-args": [
   "--device=all",
   "--filesystem=host:ro",
   "--socket=pulseaudio",
   "--env=QT_QPA_PLATFORM=xcb",
   "--socket=x11",
   "--share=network",
   "--share=ipc",
   "--allow=bluetooth",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--talk-name=org.xfce.ScreenSaver",
   "--talk-name=org.mate.ScreenSaver",
   "--filesystem=xdg-run/gamescope-0:ro"
  ],
  "modules": [
   {
    "name": "libevdev",
    "buildsystem": "meson",
    "config-opts": [
     "-Dtests=disabled",
     "-Ddocumentation=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.freedesktop.org/software/libevdev/libevdev-1.13.6.tar.xz",
      "sha256": "73f215eccbd8233f414737ac06bca2687e67c44b97d2d7576091aa9718551110",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 20540,
       "stable-only": true,
       "url-template": "https://www.freedesktop.org/software/libevdev/libevdev-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "dolphin-emu",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DENABLE_ALSA=OFF",
     "-DENABLE_SDL=ON",
     "-DENABLE_EVDEV=ON",
     "-DDISTRIBUTOR=Flathub"
    ],
    "cleanup": [
     "/share/man"
    ],
    "post-install": [
     "install -D -t ${FLATPAK_DEST}/bin/ dolphin-emu-wrapper",
     "install -Dm644 -t ${FLATPAK_DEST}/share/metainfo/ org.DolphinEmu.dolphin-emu.metainfo.xml",
     "desktop-file-edit --set-key=Exec --set-value='/app/bin/dolphin-emu-wrapper' /app/share/applications/dolphin-emu.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/dolphin-emu/dolphin.git",
      "commit": "c77bbaa0f372c3f72281602a8b087206706542cb",
      "x-checker-data": {
       "type": "json",
       "url": "https://dolphin-emu.org/update/latest/beta",
       "commit-query": ".hash",
       "version-query": ".shortrev",
       "timestamp-query": ".date",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "org.DolphinEmu.dolphin-emu.metainfo.xml"
     },
     {
      "type": "script",
      "commands": [
       "for i in {0..9}; do\n  test -S $XDG_RUNTIME_DIR/discord-ipc-$i ||\n    ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;\ndone\ndolphin-emu \"$@\"\n"
      ],
      "dest-filename": "dolphin-emu-wrapper"
     }
    ]
   }
  ]
 }
}