guake
guake copied to clipboard
Add an appstream file
With the renew of guake we should make sure it shows up in gnome-software by shipping an appstream file in the sources
http://www.freedesktop.org/software/appstream/docs/
agreed!
And an "AppData" (see #325): http://people.freedesktop.org/~hughsient/appdata/
Can someone help me on this matter I frankly have no idea what to do?
We should include in the sources a file to be used by software application and install it upon install.
This is just like another .desktop file but with another set of information in it
which are... ? do you have sample for similar apps?
It's in the link you gave above :)
I reported it to be an gnome-software issue, as I thought it was an error on their end:
https://gitlab.gnome.org/GNOME/gnome-software/issues/647
I see there is branch merged solving this issue, dated Oct 2018. When will it be released?
Do you mean master? I still have some fixes to do until release of next version
OK, it looks like we have 2 issues:
- The appdata is in the wrong folder.
I saw the file at /usr/share/guake/data/guake.appdata.xml, but it looks like other pacakges are installing the appdata at /usr/share/metainfo/$appName.appdata.xml OR /usr/share/appdata/$appName.metainfo.xml OR /usr/share/appdata/$appName.appdata.xml
It looks like we've just need to move the file to the right folder.
- guake.desktop is a symlink
/usr/share/applications/guake.desktop points to ../guake/data/guake.template.desktop
BUT AppStream's documentation says:
No symbolic links
Since the AppStream Generator relies on packages' md5sums file to determine the contents of a package, symbolic links are not recognized. So please do not symlink .desktop files or icons from other places into /usr/share/pixmaps or the /usr/share/icons/hicolor subdirectories, because the generator will not see these files then. Relying on symbolic links in icon-theme packages is fine though. https://wiki.debian.org/AppStream/Guidelines#No_symbolic_links
I don't know if we have to follow the 2 rules. I'm still digging.
OK, pullrequest added https://github.com/Guake/guake/pull/1754
commit c9a7c66eeed258c1dd1beb453d1d118a01a1101f placed guake.desktop.metainfo.xml to $(DESTDIR)/metainfo/ instead of $(DESTDIR)$(datadir)/metainfo/. In package this file will be placed to /metainfo, but standard (https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#qsr-app-introduction) says:
Applications can ship one or more files in /usr/share/metainfo/%{id}.metainfo.xml
/usr/share part ($(datadir)) is missing in the installation path. Please, return $(datadir) to installation path.
The fastest way to get this in would be to make a pull request yourself with the changes that you feel are necessary. I can't approve my own pull requests but I can do so for other people, so a change I make may take an indeterminate amount of time until it gets looked at and merged.
Thank you for the attention. Please, review pull request #1928
Looks like we've added this file a good long time ago. Closing.
Nevermind, just tried installing gnome-software to do a quick sanity check and looks like we still have a bit more to do to make it show up.