name: fireflyluciferin
description: Ambient lighting software
snapcraft: https://github.com/sblantipodi/firefly_luciferin/blob/luciferin-v3/snapcraft.yaml
upstream: https://github.com/sblantipodi/firefly_luciferin
upstream-relation: upstream author and snap publisher
plugs:
systemd-user:
interface: personal-files
attributes:
write:
- $HOME/.config/systemd/user/luciferin_snap.service
request-type: auto-connection
reasoning: |
Firefly Luciferin needs to create its own systemd user service
file when missing, allowing users to manage the application
through their systemd user service manager.
Access is limited to luciferin_snap.service. Existing files
are preserved, and the application does not automatically
enable or start the service.
Auto-connection would allow this setup to work without
requiring users to connect the interface manually.
You can find the repo of the project here:
and obviously on the snap store:
Thank you for your time and for reviewing this request.
Given that $HOME/.config/systemd/user/luciferin_snap.service is clearly owned by the snap, this is a +1 from my side for auto-connectingpersonal-files to the fireflyluciferin snap!
systemd user service file can be used to break out of the confinement that the snapd provides. Hence, -1 from me to grant auto-connection for write access to $HOME/.config/systemd/user/luciferin_snap.service using personal-files interface.
What exactly are you trying to achieve with systemd service? Have you had a chance to look at snapd features like autostart and daemons? User daemons would have been ideal for this case but this is an experimental feature for now.
I understand the security concern regarding systemd unit files and Snap confinement.
However, Firefly Luciferin supports both desktop and headless operation, and the purpose of this integration is to let users optionally manage the application through their own systemd user service.
The application only creates the service file if it doesn’t already exist, and it never enables or starts the service automatically. That decision is left entirely to the user.
Regarding the alternatives you mentioned:
- Autostart is suitable for graphical desktop sessions, but doesn’t address headless operation or provide equivalent service lifecycle management.
- System daemons don’t provide the same per-user execution model.
- User daemons would indeed be the preferred solution, but as you pointed out, they are still experimental.
I’m not trying to circumvent Snap confinement. I’m trying to provide functionality that is already available to users through the other Linux packaging formats.
If granting this interface is considered unacceptable for security reasons, I understand. However, I’d appreciate some guidance on the recommended, non-experimental approach for supporting optional systemd user services in strictly confined Snaps.
I am not aware of any other approaches and apart from the experimental feature that I already mentioned, (I might be wrong) I do not think there are other snapd features to support your use case.
Considering that, I am happy to support for manual-connection for write access to $HOME/.config/systemd/user/luciferin_snap.service file after publisher vetting.
Could you please also rename the name of the interface from systemd-user to dot-config-systemd-user-luciferin_snap-dot-service to accurately represent the access that the users will be granting? Thanks!