Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283741 - dev-util/argouml-0.26: Request for desktop launcher
Summary: dev-util/argouml-0.26: Request for desktop launcher
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-05 10:08 UTC by Krzysztof Magusiak
Modified: 2010-01-10 14:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Magusiak 2009-09-05 10:08:26 UTC
After installing ArgoUML, there is no icon for the program under the gnome menu.

Reproducible: Always

Steps to Reproduce:
1. Install ArgoUML
2. Find the ArgoUML launcher in the menu



Expected Results:  
There might be a launcher in the Applications->Programming gnome menu.
Comment 1 Sergey Ilinykh 2009-12-01 08:58:53 UTC
i've put version with launcher into my overlay
layman -a rion
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2010-01-10 12:20:39 UTC
(In reply to comment #1)
> i've put version with launcher into my overlay
> layman -a rion
> 

I committed this with improvements. You shouldn't use extensions with icons:
/usr/share/applications/argouml-argouml.desktop: warning: value "argologo.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path

I also had trouble getting the icon to show up so I used a 32 pixel icon instead of your 88 pixel icon.

--- argouml-0.29.2.ebuild       2009-11-29 22:22:22.000000000 +0200
+++ argouml-0.29.2-r1.ebuild    2010-01-10 14:16:48.000000000 +0200
@@ -1,8 +1,10 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-util/argouml/argouml-0.29.2.ebuild,v 1.1 2009/11/29 20:22:22 fordfrog Exp $

-inherit java-pkg-2
+EAPI="2"
+
+inherit fdo-mime java-pkg-2

 DESCRIPTION="modelling tool that helps you do your design using UML"
 HOMEPAGE="http://argouml.tigris.org"
@@ -35,7 +37,7 @@

        java-pkg_dolauncher ${PN} --main org.argouml.application.Main

-       dodoc ${P}/README.txt
+       dodoc ${P}/README.txt || die

        if use doc ; then
                dohtml -r release/{Readme.htm,www}
@@ -43,4 +45,15 @@
                doins "${DISTDIR}/manual-${PV}.pdf"
                doins "${DISTDIR}/quickguide-${PV}.pdf"
        fi
+
+       doicon "${FILESDIR}"/${PN}.png || die
+       make_desktop_entry ${PN} "ArgoUML" ${PN} "Graphics"
+}
+
+pkg_postinst() {
+       fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+       fdo-mime_desktop_database_update
 }
Comment 3 Sergey Ilinykh 2010-01-10 14:14:39 UTC
ok thx :)
i removed argouml from my overlay.