Files
reims-vgpu/scripts
Anees Iqbal 7b549308ed 🆕 Write an app entry for the VMs' windows at install on Linux
The windows grab the keyboard whenever they have it, and on GNOME that grab
is the shortcuts inhibitor, which GNOME Shell lets an app take only once the
person answers its "Allow inhibiting shortcuts" question. The shell keeps the
answer in its permission store for the app the window maps to; a window that
maps to no installed app is asked again at every focus (read from GNOME
Shell's inhibitShortcutsDialog.js).

So on Linux scripts/install-ctl.sh now writes
$XDG_DATA_HOME/applications/reims-vgpu.desktop (~/.local/share/applications
where XDG_DATA_HOME is unset or not absolute), named for the windows' app ID,
reims-vgpu (SDL_APP_ID), with StartupWMClass=reims-vgpu for X11. It is hidden
from the menus (NoDisplay=true), and its Exec is the installed reims-ctl's
absolute path, in a terminal. Every install and update rewrites it. A file
there without the install's marker line is someone else's: it is left as it
is, and the install says so. A failure to write it is a warning, since
reims-ctl is installed by then and works without it. The install's closing
lines name the file, and so does the README's install paragraph.

Nothing writes it at run time, and macOS and Windows get none.
2026-12-03 16:42:35 -08:00
..