[gnome-apps-nightly] games: Give access to joypads



commit 8b96507280cf5afd7692ea4673bfacda9cde8ed4
Author: Mathieu Bridon <bochecha daitauha fr>
Date:   Tue Aug 16 10:03:36 2016 +0200

    games: Give access to joypads
    
    GNOME Games currently uses udev for joypad enumerations, which doesn't
    work inside a flatpak.
    
    It has a fallback code which searches inside /dev. This is pretty
    terrible as it forces to poke a giant hole in the sandbox, giving Games
    access to all devices.
    
    However the alternative is not being able to play games.
    
    Eventually, we'll need something like a joypad portal, and we'll need to
    port Games to it, but in the meantime, this is the best we can do.

 org.gnome.Games.json |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/org.gnome.Games.json b/org.gnome.Games.json
index b11ca20..acbf318 100644
--- a/org.gnome.Games.json
+++ b/org.gnome.Games.json
@@ -20,6 +20,8 @@
         "--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
         /* Needed to get the games info from The Games DB */
         "--share=network",
+        /* Needed for joypads, until we have a proper portal */
+        "--device=all",
         /* Needed to find the ROMs */
         "--filesystem=home:ro"
     ],
@@ -108,6 +110,15 @@
             ]
         },
         {
+            "name": "libevdev",
+            "sources": [
+                {
+                     "type": "git",
+                     "url": "https://anongit.freedesktop.org/git/libevdev.git";
+                }
+            ]
+        },
+        {
             "name": "gnome-games",
             "sources": [
                 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]