edeforas / Astree

Astree is a free open source optical ray tracing and design software
GNU Lesser General Public License v3.0
76 stars 9 forks source link

Add "astree.png" (app icon), "astree.desktop" and "astree.appdata.xml" files #23

Open ghost opened 5 years ago

ghost commented 5 years ago

For example, astree.desktop:

[Desktop Entry]
Type=Application
Name=Astree
Exec=astree %f
Icon=astree
Terminal=false
Categories=Graphics;Engineering;Education;
MimeType=application/x-astree;
StartupNotify=true

For example, astree.appdata.xml (created using @probonopd's generator)

<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
    <id>astree</id>
    <metadata_license>CC0-1.0</metadata_license>
    <project_license>LGPL-3.0</project_license>
    <name>Astree</name>
    <summary>Free open-source optical ray tracing and design software</summary>
    <description>
        <p>Astree software computes and shows the ray-tracing analysis of optical devices, having conical or polynomial surfaces,having reflections, transmissions, stops, analysis of the image quality.</p>
    </description>
    <launchable type="desktop-id">astree.desktop</launchable>
    <url type="homepage">http://edeforas.free.fr/</url>
    <screenshots>
        <screenshot type="default">
            <image>http://edeforas.free.fr/Astree/astree.png</image>
        </screenshot>
    </screenshots>
    <provides>
        <id>astree.desktop</id>
    </provides>
</component>
probonopd commented 5 years ago
me@host:~$ desktop-file-validate astree.desktop 
astree.desktop: hint: value "Graphics;Engineering;Education;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
ghost commented 5 years ago
me@host:~$ desktop-file-validate astree.desktop 
astree.desktop: hint: value "Graphics;Engineering;Education;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu

If this is issue, lets use only Categories=Graphics; (also do not forget to add Comment= entry)

[Desktop Entry]
Type=Application
Name=Astree
Comment=Free open-source optical ray tracing and design software
Exec=astree %f
Icon=astree
Terminal=false
Categories=Graphics;
MimeType=application/x-astree;
StartupNotify=true
edeforas commented 5 years ago

Hello, do we have a Scientific or Hobbying category? ( Graphics is nice anyway)

Le dim. 18 août 2019 à 17:40, app4soft notifications@github.com a écrit :

me@host:~$ desktop-file-validate astree.desktop astree.desktop: hint: value "Graphics;Engineering;Education;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu

If this is issue, lets use only Categories=Graphics;

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/edeforas/Astree/issues/23?email_source=notifications&email_token=AEBQLG3D5ZW2PJQ6HBCTP7TQFFUPRA5CNFSM4IMSZJ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RCQBY#issuecomment-522332167, or mute the thread https://github.com/notifications/unsubscribe-auth/AEBQLG4KXQSKJTO5U6COACLQFFUPRANCNFSM4IMSZJ6A .

ghost commented 5 years ago

do we have a Scientific or Hobbying category? ( Graphics is nice anyway)

Yes, you could set ANY category (and not only one!), but usually other CAD software use Graphics.

probonopd commented 5 years ago

Please see https://standards.freedesktop.org/menu-spec/latest/apa.html and whatever you do, please check your desktop file with the desktop-file-validate tool to ensure it does not produce errors or warnings. Thanks!