![]() Registered Member ![]()
|
hi guys. I'm writing on this forum because I haven't managed to solve the issue via irc or on the web. Sorry to keep bugging you, but this problem is making me go bonkers! The problem may be simple for you, but for a first timer like me, it's not. I can't manage to get my app to install custom icons and use them ( the icons are named "hi<size>-app-<myappname>.png" ). Here are a few lines i used on my program
then the icons cmake file ( all icons are named "hi<size>-app-<my app name>.png"
ande finally here is the source code line i use to load the icon
Anyone got a clue on why i can't set the icon on my application and why i get a "unknown" or blank icon? Thanks |
![]() Administrator ![]()
|
If you open "kdialog --geticon app" can you find your icon there? It will output the name you need to use in your app.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I did as said but couldn't find my icon under the "app" section. |
![]() Administrator ![]()
|
Can you confirm that $PREFIX/share/icons/hicolor/<size>/apps/<iconname>.png
<size> can be 32x32, 64x64, etc. <iconname> is your application's name.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Yes i can confirm this. Here is the output of my "make install"
p.s before writing this post i was on fluxbox and tried my program just to see what it was like under Flux, and here i can see the icon set correctly( still can't see it in the KAboutData though ). Maybe something wrong with my kde? |
![]() Administrator ![]()
|
The icon cache may not be picking it up. Try removing /var/tmp/kdecache-$USER/ outside KDE.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Looks like everything is ok now. But it's behaviour was strange. Isn't kde supposed to cache the icons immediatley? How does it work?
|
![]() Administrator ![]()
|
The cache should usually be updated, I don't know why it didn't.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient