{
 "app_id": "com.github.devalien.workspaces",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.devalien.workspaces/master/com.github.devalien.workspaces.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:07:34.902160+00:00",
 "manifest": {
  "app-id": "com.github.devalien.workspaces",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "base": "io.elementary.BaseApp",
  "base-version": "circe-25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.vala"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/vala/bin/",
   "prepend-ld-library-path": "/usr/lib/sdk/vala/lib"
  },
  "command": "workspaces-wrapper",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--filesystem=host",
   "--talk-name=org.freedesktop.Flatpak",
   "--metadata=X-DConf=migrate-path=/com/github/devalien/workspaces/"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/man",
   "/share/doc",
   "/share/gtk-doc",
   "/share/man",
   "/share/pkgconfig",
   "/share/vala",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "media-keys",
    "buildsystem": "simple",
    "build-commands": [
     "install -D data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in /app/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.media-keys.gschema.xml",
     "sed -i -e 's/@GETTEXT_PACKAGE@/gnome-settings-daemon/g' /app/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.media-keys.gschema.xml"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gnome-settings-daemon/44/gnome-settings-daemon-44.1.tar.xz",
      "sha256": "12653b72d81f151300a47d700ac9410ac1bcce38e83f1bdd19cded2932943989"
     }
    ]
   },
   {
    "name": "wrapper",
    "buildsystem": "simple",
    "build-commands": [
     "install -m755 workspaces-wrapper /app/bin"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "workspaces-wrapper",
      "commands": [
       "export PATH=$PATH:/run/host/usr/bin",
       "export XDG_DATA_DIRS=$XDG_DATA_DIRS:/run/host/usr/share",
       "com.github.devalien.workspaces"
      ]
     }
    ]
   },
   {
    "name": "Workspaces",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/devalien/workspaces.git",
      "tag": "3.1.0",
      "commit": "d3d69be669b25a2f27074c0e8f6e056612c79eb3"
     },
     {
      "type": "patch",
      "path": "fix_appdata.patch"
     }
    ],
    "post-install": [
     "sed -i s:Exec=com.github.devalien.workspaces:Exec=/app/bin/workspaces-wrapper: /app/share/applications/com.github.devalien.workspaces.desktop",
     "mkdir -p /app/share/icons/hicolor/scalable/apps",
     "mv /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "find /app/share/icons/hicolor -type f -not -path \"*scalable*\" -not -path \"*actions*\" -name \"*.svg\" -delete"
    ]
   }
  ]
 }
}