Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241208 - x11-libs/qt-gui-4.5.0 doesn't install icons for designer and linguist
Summary: x11-libs/qt-gui-4.5.0 doesn't install icons for designer and linguist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 23:28 UTC by Alessandro Guido
Modified: 2009-04-14 20:36 UTC (History)
2 users (show)

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


Attachments
qt-gui-4.4.2-r1 ebuild proposal (qt-gui-4.4.2-r1.ebuild,4.43 KB, text/plain)
2009-01-03 06:52 UTC, Sebastian Pipping
Details
qt-assistant-4.4.2-r1 ebuild proposal (qt-assistant-4.4.2-r1.ebuild,2.13 KB, text/plain)
2009-01-03 06:53 UTC, Sebastian Pipping
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Guido 2008-10-10 23:28:58 UTC
Ebuild should install icons used in Designer.desktop and Linguist.desktop

tools/designer/src/designer/designer.ico
tools/linguist/linguist/linguist.ico

Reproducible: Always
Comment 1 Sebastian Pipping gentoo-dev 2009-01-03 06:49:56 UTC
Notes:
- applies to x11-libs/qt-assistant-4.4.2 as well
- .ico files are for Windows, for Linux icons .png is used
Comment 2 Sebastian Pipping gentoo-dev 2009-01-03 06:52:37 UTC
Created attachment 177191 [details]
qt-gui-4.4.2-r1 ebuild proposal
Comment 3 Sebastian Pipping gentoo-dev 2009-01-03 06:53:16 UTC
Created attachment 177192 [details]
qt-assistant-4.4.2-r1 ebuild proposal
Comment 4 Sebastian Pipping gentoo-dev 2009-01-03 17:49:47 UTC
A few more words about the new ebuilds:
- The needed icons are not installed by Qt itself so the ebuild does that
- Having "assistant.png" for the icon location in a .desktop file seems to result in loading of a a different icon. Switching to an sbsolute filename (/usr/share/pixmaps/aissistant.png) solved this.  Same for the designer icon.
- The "Qt Designer" icon now just says "Designer".  I felt this to be more consistent to "Linguist" and "Assistant".  Please change it back if needed.
- Previous ebuilds used the .desktop file from the "files" directory.  As I needed to change the icon location in there, I took the occasion to consider if maybe using make_desktop_entry would be a better thing to do, also because that allows to modify behavior per ebuild and not for several Qt ebuilds at once.

The interesting part of the qt-gui ebuild (speaking of one, applies to both) is this section of the install stage:

================================================================
cd "${S}" || die "cd failed"
dodir /usr/share/pixmaps/ || die "dodir failed"
insinto /usr/share/pixmaps/ || die "insinto failed"
doins tools/linguist/linguist/images/icons/linguist-128-32.png \
		tools/designer/src/designer/images/designer.png
	|| die "doins failed"
make_desktop_entry /usr/bin/linguist Linguist \
		/usr/share/pixmaps/linguist-128-32.png \
		'Qt;Development;GUIDesigner' \
	|| die "make_desktop_entry failed"
make_desktop_entry /usr/bin/designer Designer \
		/usr/share/pixmaps/designer.png \
		'Qt;Development;GUIDesigner' \
	|| die "make_desktop_entry failed"
================================================================
Comment 5 Ben de Groot (RETIRED) gentoo-dev 2009-01-05 23:55:44 UTC
Thanks! Committed.
Comment 6 Pacho Ramos gentoo-dev 2009-04-13 19:47:13 UTC
qt-gui-4.5.0 is still affected by this one, should I open a new bug or reopen this?
Thanks!
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2009-04-13 23:41:22 UTC
Is that so?

Ben, Alex can you verify this issue with qt-4.5.0 ?
Comment 8 Alessandro Guido 2009-04-14 00:39:21 UTC
Confirm that issue is still there with qt-gui-4.5.0
Comment 9 Sebastian Pipping gentoo-dev 2009-04-14 00:47:04 UTC
Unless anyone confirms that the problem also exists in 4.4.2-r3 I suppose this rather indicates a change upstream and a new bug.
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2009-04-14 01:02:05 UTC
4.2.2-r3 has a different code for desktop menu creation

The thing is that I do have linguist and Designer Icons and I use qt-gui-4.5.0 :\

I ll digg into this tomorrow :)
Comment 11 Ben de Groot (RETIRED) gentoo-dev 2009-04-14 05:54:55 UTC
(In reply to comment #7)
> Ben, Alex can you verify this issue with qt-4.5.0 ?

Yes, I can verify
Comment 12 Markos Chandras (RETIRED) gentoo-dev 2009-04-14 12:34:49 UTC
I just commited qt-assistant-4.5.0-r1 and qt-gui-4.5.0-r1

Thanks again for reporting this :)
Comment 13 Pacho Ramos gentoo-dev 2009-04-14 19:03:13 UTC
Thanks a lot for the fast fix, I will test it as soon as I am able :-)
Comment 14 Alessandro Guido 2009-04-14 20:01:22 UTC
Confirm fixed with qt-gui-4.5.0-r1
Comment 15 Keith Rusler 2009-04-14 20:36:37 UTC
(In reply to comment #12)
> I just commited qt-assistant-4.5.0-r1 and qt-gui-4.5.0-r1
> 
> Thanks again for reporting this :)
> 
Works perfectly for me :D. But I had to run kbuildsyscoa4 afterwards for KDE4