Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interfaces: add desktop-file-prefix plug attr to desktop interface #13980

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZeyadYasser
Copy link
Collaborator

This plug attribute is needed to allow snaps to have custom desktop file names.

Previously, snapd installed desktop files as $snap_$app.desktop. This causes problems in a number of cases where desktop files are expected to follow a particular format, or have a specific name. This PR is the first step in allowing custom desktop file names.

The new plug attribute allows snaps to have custom desktop file names (prefixed with the desktop-file-prefix attribute value).

Naming cannot be left uncontrolled, so the $MISSING constraint is added to only allow overriding desktop-file-prefix through the store. The process of requesting the snap declaration on the store will help ensure that the prefixes are sensible.

More details can be found in the spec: SD170

Note: deny-auto-connection and deny-connection had to be moved to the plug base declaration because it takes precedence as mentioned in interfaces/builtin/README.md

This plug attribute is needed to allow snaps to have custom desktop
file names.

Previously, snapd installed desktop files as “$snap_$app.desktop”.
This causes problems in a number of cases where desktop files are
expected to follow a particular format, or have a specific name.

The new plug attribute allows snaps to have custom desktop file
names (prefixed with the "desktop-file-prefix" attribute value).

Naming cannot be left uncontrolled, so the $MISSING constraint
is added to only allow overriding "desktop-file-prefix" through
the store. The process of requesting the snap declaration on the
store will help ensure that the prefixes are sensible.

More details can be found in the spec: SD170

Signed-off-by: Zeyad Gouda <zeyad.gouda@canonical.com>
@ZeyadYasser ZeyadYasser added the Needs Samuele review Needs a review from Samuele before it can land label May 17, 2024
Copy link
Contributor

@MiguelPires MiguelPires left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Samuele review Needs a review from Samuele before it can land
Projects
None yet
2 participants