Request for uinput interface for vocalinux

VocaLinux is an open source voice dictation app for Linux. Users hold a shortcut, dictate, and transcribed text is typed into the focused window.

The snap declares the uinput plug because it ships ydotool to type into native Wayland apps. Wayland has no XTEST equivalent, so /dev/uinput is the only path for text injection outside XWayland windows. The plug is not auto-connected: the install docs tell users to run sudo snap connect vocalinux:uinput when they want the Wayland typing path. I’m only asking for installation permission, not auto-connect.

Review history: revision 8 (0.17.0) added the plug and was manually rejected. Revisions 9 (0.18.0) and 10 (0.18.1) were then auto-rejected with “human review required due to ‘allow-installation’ constraint (bool) declaration-snap-v2_plugs_installation (vocalinux, uinput)”. latest/edge still serves revision 7 (0.16.2), the last build without the plug.

Same use case as Emote (snapcraft . io / emote), which was granted uinput for the same ydotool-driven paste path.

Happy to answer questions. Thanks.

- Jatin (Creator & Maintainer)

This request has been added to the queue for review by the @reviewers team.

1 Like

Hi @jatinkrmalik

The uinput interface is super-privileged since it allows arbitrary injection of input to the system, and since it seems to be a common pattern for software that uses uinput to guide users to chmod 666 /dev/uinput to work-around accessing this as a standard user. And due to that very reason, emote was not granted access to this interface.

As per this emote PR, they are looking to implement the same functionality via RemoteDesktop portal and libei, which doesn’t need a special daemon that has to be installed with root.

Hence, -1 from me to grant access to uinput interface to vocalinux snap. Sorry for the inconvenience.

1 Like

Thanks for the review and the detailed explanation.

You are right about emote, my mistake. Their 2021 request was for auto-connect and was withdrawn, so there is no granted precedent here.

On the chmod 666 concern: vocalinux never suggests that. The plug is never auto-connected, ydotoold runs inside the snap sandbox on its private /tmp socket, and the only access path is the store-controlled interface. The app also does not need uinput to function. Since 0.18.0 the default Wayland injector is the RemoteDesktop portal (NotifyKeyboardKeysym via xdg-desktop-portal), which ranks ahead of ydotool in autodetection and works under strict confinement through the desktop interface.

The one gap is KDE Plasma. xdg-desktop-portal-kde mangles keysyms on non-US layouts and ydotool is the only path that types correct text there today. That is why I asked for installation permission only, as an opt-in for KDE users, not auto-connect.

If a manual-connect uinput grant is categorically off the table, I will drop the plug so stable releases can publish. latest/edge is stuck on 0.16.2 while GitHub ships 0.18.2, and the plug-free snap types correctly on GNOME and wlroots via the portal. KDE users on the snap would get the portal (mangled on some layouts) or the IBus Wayland path until the upstream fix lands, or the deb/AppImage/Flatpak where uinput remains.

Is there any path for an installation-only grant here, or should I remove the plug?

Hello @jatinkrmalik :slight_smile:

This is also a -1 from my side, as I am on the same page with @shishirsub10. Unfortunately, there is no way to grant only installation for the interface, so the only way forward is indeed to remove the plug.

Thank you for your understanding!