Support for device=input

May 4, 2024
T

Hello, everyone

Currently, the app I maintain, DevilutionX, a source port for Diablo 1/Hellfire expansion needs an overly permissive device=all permission to support game controllers

I have noticed, that since November 2023, there’s a new permission that addresses this, device=input, and it’s available since flatpak 1.15.6

It’s even on the current list of standard permissions: Sandbox Permissions - Flatpak documentation

However, when I tried to use a new permission, Flathub builders rejected it
error: Unknown device type input, valid types are: dri, all, kvm, shm

I suspect this is because flathub builders are still on 1.14 version
So, when can I expect Flathub to support this new permission? This will greatly help the app, and would get rid of “Potentially Unsafe” label, that currently on the app because of device=all permission

R

I’m not sure of when this will happen, but be aware, that you will break it for all users, still running the older flatpak versions (I would guess mostly ubuntu)

H

Support or device=input has landed without compatibility consideration.

See Device permission compatibility · Issue #5681 · flatpak/flatpak · GitHub

Don’t use it.