Request for D-Bus slot approval for focale (app.focaleeditor)

Hello,

I’m the developer of Focale, an advanced image editor. I initially have posted this in a wrong category, I apologize.

I’d like to request approval for the focale-dbus slot, allowing the application to own the D-Bus name app.focaleeditor on the session bus. The snap uses strict confinement.

name: focale
description: |
  Focale is a desktop image editor for photography, drawing and composition.
  Work with layered projects, Photoshop documents and camera RAW photographs,
  with editing performed locally on your computer.
snapcraft: private
upstream: private
upstream-relation: Upstream developer and maintainer, and publisher of the snap.
slots:
  focale-dbus:
    interface: dbus
    attributes:
      bus: session
      name: app.focaleeditor
    request-type: manual-connection
    reasoning: >-
      Focale's Linux GTK runner uses app.focaleeditor as its application ID.
      This slot allows the application to register that name on the user's
      session bus while running under strict confinement.
      The requested D-Bus name matches the application's own ID.
      This request is limited to the session bus; no system-bus access
      or auto-connection to another snap is requested.

My upload is currently awaiting manual review with the following message :

Status: will need manual review
human review required due to 'deny-connection' constraint (interface attributes)

I suspect this is related to the D-Bus slot above. For reference, my snapcraft.yaml is :

# The managed release pipeline stages the bundle and stamps name/version.
name: focale
title: Focale
version: 0.0.13
summary: Retouch, compose and create with precision
description: |
  Focale is a desktop image editor for photography, drawing and composition.
  Work with layered projects, Photoshop documents and camera RAW photographs,
  with editing performed locally on your computer.
license: Proprietary
website: https://focale-editor.app
contact: https://github.com/focale-editor/community
issues: https://github.com/focale-editor/community/issues
base: core24
grade: stable
confinement: strict
compression: lzo
platforms:
  amd64:
    build-on: [amd64]
    build-for: [amd64]
assumes: [snapd2.55]

plugs:
  # Pull in the printing proxy without granting printer administration.
  install-cups:
    interface: content
    content: foo
    default-provider: cups
    target: $SNAP_DATA/cups

slots:
  focale-dbus:
    interface: dbus
    bus: session
    name: app.focaleeditor

apps:
  focale:
    command: opt/focale/focale
    extensions: [gnome]
    desktop: usr/share/applications/focale.desktop
    environment:
      LD_LIBRARY_PATH: $SNAP/opt/focale/lib:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
      CUPS_SERVER: /var/cups/cups.sock
    plugs: [home, network, removable-media, cups]
    slots: [focale-dbus]

parts:
  focale:
    plugin: dump
    source: payload
    stage-packages:
      - cups-client
      - libcurl4t64
      - libgomp1
      - liblcms2-2

Could you please review the upload and approve this D-Bus name if this is the declaration triggering the manual review ?

Please let me know if any additional information or changes are needed.

Thank you !

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

1 Like

Hello @Skyost :slight_smile:

Could you please update the dbus name, so it matches the criteria presented here?

1 Like

Sure, thanks for the answer ! I’ve updated my slots section :

slots:
  focale-dbus:
    interface: dbus
    bus: session
    name: app.focaleeditor.Focale

Hello @Skyost :slight_smile:

Thank you for updating this. Granting use of the requested dbus slot to your snap, as it does not require votes.

This is now live!

1 Like

Thanks @yomonokio !

The upload still fails with an allow-connection constraint. The live snap declaration for G1FW75m9IvHNtKKIPuanJIgNDM4lltlu still allows app.focaleeditor (see https://api.snapcraft.io/v2/assertions/snap-declaration/16/G1FW75m9IvHNtKKIPuanJIgNDM4lltlu) whereas the package now use the approved name app.focaleeditor.Focale. Can you update the declaration and re-review the pending revision, please ?

Hello @Skyost :slight_smile:

I just updated the permissions for your snap, this is now live!

1 Like