[Pkg-anonymity-tools] Bug#802013: Bug#802013: Bug#802013: torbrowser-launcher: change or add .png images in addition or replacement of xpm so torbrowser-launcher can show up in gnome-software.

Matthias Klumpp matthias at tenstral.net
Sun Oct 18 21:11:53 UTC 2015


Hi!

2015-10-17 20:14 GMT+02:00 shirish शिरीष <shirishag75 at gmail.com>:
> in-line :-
>
> On 17/10/2015, u <u at 451f.org> wrote:
[...]
>> Does gnome-software use the .desktop files?
>
> Have no idea about it, but do understand what you are driving at :-
>
> ~$ cat /usr/share/applications/torbrowser.desktop
> [Desktop Entry]
> Name=Tor Browser
> Comment=Launch the Tor Browser Bundle
> Exec=/usr/bin/torbrowser-launcher %u
> Terminal=false
> Type=Application
> Icon=/usr/share/pixmaps/torbrowser80.xpm
> Categories=Network;WebBrowser;
>
> Have CC'ed Mathias a.k.a. ximion who might be able to give more insight.

First of all a general note: Currently, nothing shows up in
GNOME-Software automatically, since we're still waiting for the
ftp-masters to add the necessary metadata to the archive. However, the
data can be fetched manually from appstream.debian.org

So, to generate the metadata, information from the .desktop files and
potential MetaInfo files is used. From this data, we generate the
final metadata file.

In general, in order to show up in the final metadata, a .png icon is
a must (we have some exceptions for .jpg icons though).
Ideally, place an icon in "/usr/share/icons/hicolor/64x64/apps",
reference it from the .desktop file and AppStream is happy.

For more details, you can take a look at the issues page for your application:
 https://appstream.debian.org/html/unstable/contrib/issues/torbrowser-launcher.html

I plan to publicly announce this service when I squashed most of the
issues in the data generator (this will happen soon, not too much work
is left).
I will also compile a FAQ on the wiki then, for people maintaining
packages with .desktop files in them.

>From the information shown at the issue page on appstream.d.o, you
should do two things:
 1) Provide an icon which isn't just .xpm (it's fine to keep .xpm
icons, if a .png icon is provided in addition)
 2) Update the metadata to the proper AppStream format, so
"appstreamcli validate" is happy with it (you may also try
appstream-util for validation).
     (you probably just need to replace the "application" root node
with a "<component type="desktop>">" node, and drop the type property
from the <id> tag.)

Then everything is fine :)

Cheers,
    Matthias


-- 
Debian Developer | Freedesktop-Developer
I welcome VSRE emails. See http://vsre.info/



More information about the Pkg-anonymity-tools mailing list