Skip to content

Commit

Permalink
flatpak: allow access to host dconf
Browse files Browse the repository at this point in the history
This allows setting global hotkeys for a GNOME host.

re #27
  • Loading branch information
bk138 committed Nov 15, 2020
1 parent 6501486 commit 1d62dc0
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions flatpak/net.christianbeier.Gromit-MPX.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
id: net.christianbeier.Gromit-MPX
runtime: org.freedesktop.Platform
runtime-version: '20.08'
sdk: org.freedesktop.Sdk
runtime: org.gnome.Platform # using GNOME for the time being as we need dconf for setting hotkeys under Wayland
runtime-version: '3.36'
sdk: org.gnome.Sdk
command: gromit-mpx
finish-args:
- --socket=x11
# this is the dconf hole for setting hotkeys under Wayland
- --filesystem=xdg-run/dconf
- --filesystem=~/.config/dconf:ro
- --talk-name=ca.desrt.dconf
- --env=DCONF_USER_CONFIG_DIR=.config/dconf
modules:
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json
# ship media-keys schema for settings hotkeys under Wayland
- 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
- glib-compile-schemas /app/share/glib-2.0/schemas
sources:
- type: archive
url: https://github.com/GNOME/gnome-settings-daemon/archive/GNOME_SETTINGS_DAEMON_3_36_1.tar.gz
sha256: e345411f79b4a1175349e144cc772c7a9eb7ab9ae3a542a73609bee471b72748
- name: gromit-mpx
buildsystem: cmake
sources:
Expand Down

0 comments on commit 1d62dc0

Please sign in to comment.