LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-06-2009, 11:34 AM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,473

Rep: Reputation: Disabled
xfce 4.6 power manager icon


Thanks to Robby Workman for his build of xfce 4.6. So far I'm enjoying it quite a bit.

I do have one problem, which is that the power manager icon doesn't seem to show up anywhere. It is set to always display an icon, but it doesn't.

Thanks in advance for any help.

Brian

PS: I did start with a clean .config directory
 
Old 03-06-2009, 12:46 PM   #2
phys
Member
 
Registered: Jun 2006
Location: Istanbul, Turkey
Distribution: Slackware
Posts: 90

Rep: Reputation: 23
After adding power manager item to the panel (simply enabling it) I can reach preferences dialog box by right clicking power manager icon on the panel.

Last edited by phys; 03-06-2009 at 06:53 PM.
 
Old 03-06-2009, 12:49 PM   #3
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
I just finished replying to a mail about the same problem; rather than typing it all again, here's a paste:
Code:
> I decided to try out your packages for Xfce 4.6 and the xfce power
> manager. There appear to be a few problems with icons, at least on my
> computer:
> 
> the battery monitor/power manager icon does not show up in the
> systray, and the icon is blank (though there is a text entry) in the
> Application Manager;
> 
> the sound mixer icon does not appear, though a blank button does show
> up in the panel;
> 
> various other icons show as the Tango's default for something being
> missing (e.g., the Education icon in the xfce app menu).
> 
> If I'm not the only one having this trouble, maybe there's an easy
> solution?  


No, you're not the only one, but I'm not sure there's a whole lot that
we (or anyone else) can do about it.

The first problem (xfce4-power-manager icon) is one that I've
experienced here, and if the cause is the same for you, then I have no
idea what's actually happening.  It's basically this:
The /usr/share/icons/hicolor/index.theme file is somehow getting
corrupted, and if you run the power manager app from a terminal, you'll
notice a message about the icon not being present in the theme.  That's
obviously not correct, as the icon *is* present -- it's just the
corrupted index.theme file not listing the parent directory of the icon
as being part of the theme, so the icon loader doesn't look there.  If
you reinstall the hicolor-icon-theme package, the problem goes away,
but like I said a moment ago, I have no idea what's actually *causing*
the problem - reinstalling the hicolor-icon-theme package is just a
workaround until/unless I (or someone else) does.

For the other missing icons, I suspect the problem is much more
mundane.  Probably you upgraded from 4.4.x and had an existing
configuration in your $HOME.  Since 4.6.0 doesn't ship the
xfce4-icon-theme (Rodent), then /usr/share/icons/Rodent no longer
exists.  However, your user-specific configuration is set to be using
the Rodent theme, so suddenly you're missing lots of icons.  I'm
working with upstream on resolving this, as it's their bug.
Unfortunately, it's a bit elusive and multi-faceted, so it won't be
easy to fix correctly, assuming it's even possible.  The workaround
here is to go into xfce's settings menu and choose a new icon theme.
Any custom launchers in the panel left over from 4.4.x will need to
have a new icon set for them; otherwise, everything should work fine.

The only other thing that comes to mind and could cause missing icons
is that annoying and virtually worthless gtk icon cache.  The best fix,
IMHO, for that is something along these lines:
  find /usr/share/icons -name "*.cache" -exec rm -f {} \;
However, you can certainly do an update of it to see if it helps, if
you prefer to keep the thing around.

Re the Education icon missing, yes, it is, and there's nothing we can
do about that.  Until/unless an icon for that gets added to upstream,
it will be missing.

-RW
 
Old 03-06-2009, 04:52 PM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,473

Original Poster
Rep: Reputation: Disabled
Thank you. Reinstalling hicolor-icon-theme solved the problem (as well as a couple of other missing icons).

Now I've got one more oddity, but I'll put it in another thread.

Brian
 
Old 03-06-2009, 07:19 PM   #5
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 14.1
Posts: 231
Blog Entries: 1

Rep: Reputation: 34
I think what's happening is that icon-theme.cache doesn't know about the new icons. To update the cache...

Code:
gtk-update-icon-cache -f -t /usr/share/icons/hicolor/
(When you reinstall the hicolor icon theme, doinst.sh does this.)
 
Old 03-06-2009, 07:52 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
jimX86:
You're almost certainly correct with respect to many (even most) cases where that's happening, but not with what happened here. In my case, the index.theme was actually changed somehow. I keep saying that I'm going to put an inotify watch on that file, but I haven't yet. Maybe now is a good time to do that... :-)
 
Old 03-06-2009, 11:48 PM   #7
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 14.1
Posts: 231
Blog Entries: 1

Rep: Reputation: 34
Since you were kind enough not to, I should point out that your install script already updates the cache anyway.
 
Old 03-08-2009, 01:11 PM   #8
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 217

Rep: Reputation: 34
with tango works great!!
 
Old 03-11-2009, 12:11 AM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
PiterPUNK ran across this very problem today, and after I pointed out the reason for it, he promptly pointed out the reason for the reason:
Code:
liberty $ grep 'hicolor/index.theme' /var/log/packages/*                           
/var/log/packages/hicolor-icon-theme-0.10-noarch-4:usr/share/icons/hicolor/index.theme
/var/log/packages/kdebase-runtime-4.2.1-i486-1:usr/share/icons/hicolor/index.theme
Basically, the kdebase-runtime sources are generating an index.theme file based on what's present in that package, and *that* index.theme is obviously incomplete. In case I wasn't clear earlier, the index.theme file for each icon theme is a "database" of sorts the keeps up with what sub-directories underneath /usr/share/icons/${theme_name}/ contain icons. The index.theme from kdebase-runtime only contained a few directories, so the result was many applications thinking that the icon they needed did not exist in the theme.

Also in case it's not clear, you'll notice in the other themes' index.theme files an "Inherits=" line. As an example, let's pretend you're using the "MyTheme" icon theme, and it Inherits=Tango,Gnome (hicolor is implicit). If SomeApp does a call for the "someapp" icon, then first the /usr/share/icons/MyTheme directory heirarchy is checked (according to its index.theme, remember? ), and if no ./scalable/apps/someapp.svg or ./*x*/apps/someapp.png exists, then it checks the Inherited themes in order, and then hicolor. For this reason, hicolor is where applications should place "fallback" icons. To bring this full-circle, now I hope it's clear *why* a corrupted/incorrect index.theme in hicolor is such a problem :-)

Now, for a solution: reinstall the hicolor-icon-theme package.
Wait a bit (maybe a few days ; no idea at the moment) and we'll get a rebuild of the kdebase-runtime and hicolor-icon-theme packages. We've also got a rebuild of xfce4-power-manager pending - that one's to fix a bug where it's started in *any* xdg-compliant environment rather than only xfce.

Note that this icon bug is NOT the same as the missing icons for the panel launchers after an upgrade to 4.4.x. For more information about that one, see http://bugzilla.xfce.org/show_bug.cgi?id=5067
If anyone feels like hunting through the 4.4.3 code to find where those damn numbers are mapped to icons, I'll be more than happy to take it from there and work up a patch - I just don't have time to pore over all the xfce 4.4.x modules :/
 
Old 03-11-2009, 07:07 AM   #10
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Rep: Reputation: 94
I cannot say I understand that stuff, but I had some spare time

The numbers seem to come from libxfcegui4-4.4.3/libxfcegui4/gui-enum-types.c (enumerate them, then you get 13 for terminal for example). I don't know how they are mapped to icon names exactly - for example for me the network icon is xv /usr/share/icons/Tango/32x32/categories/package_network.png, although the gui-enum-types.c states only "network".

Update: I was wrong. The mlibxfcegui4-4.4.3/libxfcegui4/apping is done via icons.c in the same directory, so I was using gnome-globe.png for network icon. I guess this file (libxfcegui4-4.4.3/libxfcegui4/icons.c) is what you were looking for?


And, a quick hack that is not tested, but I hope some help for you ...

Code:
sed s/X-XFCE-IconCategory=0/Icon=applications-other/g 
sed s/X-XFCE-IconCategory=1/Icon=accessories-text-editor/g 
sed s/X-XFCE-IconCategory=2/Icon=system-file-manager/g 
sed s/X-XFCE-IconCategory=3/Icon=applications-accessories/g 
sed s/X-XFCE-IconCategory=4/Icon=application-games/g 
sed s/X-XFCE-IconCategory=5/Icon=help-browser/g 
sed s/X-XFCE-IconCategory=6/Icon=applications-multimedia/g 
sed s/X-XFCE-IconCategory=7/Icon=applications-internet/g 
sed s/X-XFCE-IconCategory=8/Icon=applications-graphics/g 
sed s/X-XFCE-IconCategory=9/Icon=printer/g 
sed s/X-XFCE-IconCategory=10/Icon=applications-office/g # maybe also xfce-schedule
sed s/X-XFCE-IconCategory=11/Icon=applications-office/g 
sed s/X-XFCE-IconCategory=12/Icon=sound/g 
sed s/X-XFCE-IconCategory=13/Icon=terminal/g 
sed s/X-XFCE-IconCategory=14/Icon=applications-development/g 
sed s/X-XFCE-IconCategory=15/Icon=preferences-system/g 
sed s/X-XFCE-IconCategory=16/Icon=applications-system/g 
sed s/X-XFCE-IconCategory=17/Icon=wine/g  # not found
sed s/X-XFCE-IconCategory=18/Icon=applications-accessories/g

Last edited by titopoquito; 03-11-2009 at 08:04 AM.
 
Old 03-11-2009, 08:32 AM   #11
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Thanks!!! icons.h has a nice typedef enum for them, and then that coupled with icons.c makes it very clear.
 
Old 03-11-2009, 04:49 PM   #12
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Rep: Reputation: 94
Nice to hear it was helpful. May I suggest the following changes (see the question from Brian over there at xfce bugzilla page), all are available from Tango icon theme as well as gnome icon theme:
Code:
 0      xfce-unknown    -> applications-other
 3      xfce-utils      -> applications-accessories
10      xfce-schedule   -> applications-office    # I have found no better one
12      xfce-sound      -> audio-card             # in gnome-icon-theme audio card, in Tango speaker
17      xfce-wine       -> -                      # as you have already stated, this one is missing anyway
 
Old 03-11-2009, 11:25 PM   #13
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Check the bug again; thanks!
 
Old 03-12-2009, 04:19 AM   #14
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Rep: Reputation: 94
Nice. I hadn't seen office-calendar icon, it fits better in the list. The original icon's symbolic meaning was not very clear, like you wrote it. Thanks for pushing the suggestion. I have to admit I was to lazy to create an account to file it myself
 
Old 03-14-2009, 04:00 PM   #15
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Okay, check the bug report again; I just attached a shell script that tests out wonderfully here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change desktop icon on XFCE? phys Slackware 1 02-22-2009 04:43 PM
gnome-power-manager icon missing from panel nkd Linux - Software 4 12-09-2008 02:29 AM
xfce etiquette icon theme dmrr Slackware 0 07-03-2007 04:32 PM
Screenshooter icon in Xfce 4.2 mjjzf Linux - Software 0 09-24-2006 12:58 PM
How do I add the Firefox icon to the XFCE panel? Travis86 Linux - Software 3 05-02-2006 02:48 PM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration