Hi, requesting a session-bus dbus slot for the snap devtpro. Details below.
name: devtpro
description: DevT Pro, an offline Flutter/GTK 3 desktop app with developer
tools (format, convert and validate JSON/XML/YAML, encoders, hashes and
similar), plus a bundled CLI (devtpro.cli). https://devtpro.app
snapcraft: not publicly available (relevant excerpt below)
upstream: PRIVATE
upstream-relation: maintainer (I develop and publish the app)
slots:
dbus-devtpro:
interface: dbus
attributes:
bus: session
name: dev.aadhil.devtpro
request-type: installation
reasoning: The GUI is a GtkApplication with the application ID
dev.aadhil.devtpro and registers it on the session bus for
single-instance handling. A second launch, or a devtpro:// link opened
from the desktop, is forwarded to the running window. The bus name
matches the application ID used in the desktop file, the AppStream
metainfo and the Flatpak, and comes from my domain aadhil.dev, which
also hosts the release archives. Without the slot, strict confinement
denies the name ("Failed to register: ... Request to own name refused
by policy") and the window never opens.
Excerpt from snapcraft.yaml:
slots:
dbus-devtpro:
interface: dbus
bus: session
name: dev.aadhil.devtpro
apps:
devtpro:
slots: [dbus-devtpro]
A few notes:
- The slot is only on the GUI app. The
cliapp doesn’t use D-Bus. - Only the app itself uses the name. No other snap is expected to connect to it.
Happy to upload a revision with the slot for review or answer any questions. Thanks!