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

The instructions don't work if the app id has a - #26

Open
sgued opened this issue Oct 21, 2023 · 2 comments
Open

The instructions don't work if the app id has a - #26

sgued opened this issue Oct 21, 2023 · 2 comments

Comments

@sgued
Copy link

sgued commented Oct 21, 2023

Hi,

When trying to create an application with a dash in the name, the build instructions from the readme fail:

$ flatpak-builder --user flatpak_app build-aux/fr.sgued.ten-forward.Devel.json
Downloading sources
Initializing build dir
error: 'fr.sgued.ten-forward.Devel' is not a valid application name: Only last name segment can contain -

This issue can be fixed by having changing the Id inside of the .Devel.json manifest (the id itself, not the name of the file), to remove the Devel at the end. For example in my case the file would start:

{
    "id": "fr.sgued.Devel.ten-forward",
    "runtime": "org.gnome.Platform",
    "runtime-version": "44",

With the Devel moved so that the app name is at the end.

Are apps with a - in the id not supported? The example proposed by the script has one: my-awesome-app.

@AaronErhardt
Copy link
Member

I think dashes are not supported in app IDs. my-awesome-app refers to the project name, the second prompt which is used for the folder and executable names AFAIK.

I think the script should immediately report false inputs though, but this should rather be fixed upstream.

@sgued
Copy link
Author

sgued commented Nov 1, 2023

Indeed, hyphens are not allowed.

https://freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-id-generic

While hyphens are allowed for legacy compatibility, their usage is strongly discouraged to ensure interoperability of the AppStream ID with other tools such as D-Bus (and thereby making the ID more generic and useful).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants