Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157619 - media-gfx/tuxpaint-0.9.16 duplicate menu entry under gnome
Summary: media-gfx/tuxpaint-0.9.16 duplicate menu entry under gnome
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest trivial (vote)
Assignee: Leonardo Boshell (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-09 07:35 UTC by Pacho Ramos
Modified: 2006-12-12 18:43 UTC (History)
2 users (show)

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


Attachments
tuxpaint-0.9.16-r1.ebuild (tuxpaint-0.9.16.ebuild,1.33 KB, text/plain)
2006-12-09 07:35 UTC, Pacho Ramos
Details
tuxpaint-0.9.16-r1.ebuild (tuxpaint-0.9.16-r1.ebuild,1.38 KB, text/plain)
2006-12-09 17:35 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2006-12-09 07:35:12 UTC
This is bacause of this:
(from tuxpaint ebuild)
        if use kde; then
                myopts="${myopts} \
                        KDE_PREFIX=/usr/share/applnk \
                        KDE_ICON_PREFIX=/usr/share/icons"
        fi

But this is no longer needed in kde 3.5, kde 3.5 can use menu entry placed in /usr/share/applications, then, the attatched ebuild fix the problem and the menu entry is properly shown in kde and gnome menus.

Thanks a lot for fix it in portage tree :-)
Comment 1 Pacho Ramos gentoo-dev 2006-12-09 07:35:38 UTC
Created attachment 103692 [details]
tuxpaint-0.9.16-r1.ebuild
Comment 2 Pacho Ramos gentoo-dev 2006-12-09 07:53:07 UTC
But now, there is inly one menu entry but, without icon :-(

May be this line should be preserved?:
KDE_ICON_PREFIX=/usr/share/icons

Now, with the "official" ebuild, is tuxpaint is merged with USE -kde, icon is not installed :-/
Comment 3 Leonardo Boshell (RETIRED) gentoo-dev 2006-12-09 13:50:03 UTC
Unfortunately I can't test it under KDE, only under GNOME where it works correctly, so I don't have much advice.

However if you find a way this could work as expected under KDE, please re-open and I'll consider it for inclusion. Thanks.
Comment 4 Pacho Ramos gentoo-dev 2006-12-09 17:34:29 UTC
(In reply to comment #3)
> Unfortunately I can't test it under KDE, only under GNOME where it works
> correctly, so I don't have much advice.
> 
> However if you find a way this could work as expected under KDE, please re-open
> and I'll consider it for inclusion. Thanks.
> 

The problem is that, currently (with the "official" ebuild) there is other bug: if tuxpaint is emerged with USE=-kde, no icon is installed. I think that this can be easily fixed if KDE_ICON_PREFIX=/usr/share/icons is always defined (with and without USE kde) for force it to place the icon in correct directory. I think that kde USE flag is not needed, beacuse KDE, now, is able to use the same menu entry than gnome.

I attacth a new ebuild with this changes, it has no kde USE flag, but it works fine under KDE and Gnome and fixes all problems.

Thanks a lot :-)
Comment 5 Pacho Ramos gentoo-dev 2006-12-09 17:35:05 UTC
Created attachment 103722 [details]
tuxpaint-0.9.16-r1.ebuild
Comment 6 Leonardo Boshell (RETIRED) gentoo-dev 2006-12-12 18:43:12 UTC
I committed 0.9.16-r1 which drops both the 'gnome' and 'kde' flags, and it always install the .desktop file and the icons in the standard places, which according to your input should work in KDE as well :).

Thanks for the report.