Hi, it’s a question related to AppData, and while there are some documents available, I wanted to be sure.
There are several apps that use their ID with the .desktop
extension.
<id>org.gnome.SwellFoop.desktop</id>
Can I simply remove the .desktop
part, because the guidelines say it’s not recommended?
<!-- Good -->
<id>org.flatpak.qtdemo</id>
<!-- Bad -->
<id>org.flatpak.qtdemo.desktop</id>
<id>qtdemo.desktop</id>
Is the .desktop
considered part of the ID?
Because the guidelines discourage renaming the app ID.
Renaming ID tag
The ID tag in the MetaInfo file is supposed to be a constant and unique identifier of an application and should not be renamed unless absolutely necessary. source
If I understand correctly, after changing
<id>org.gnome.SwellFoop.desktop
to
<id>org.gnome.SwellFoop</id>
,
I also need to use the <replaces>
and <provides>
tags as shown in the following example.
<id>org.gnome.SwellFoop</id>
...
<replaces>
<id>org.gnome.SwellFoop.desktop</id>
</replaces>
...
<provides>
<id>org.gnome.SwellFoop.desktop</id>
</provides>
Thanks.