LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-10-2013, 09:19 PM   #16
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 793

Rep: Reputation: 245Reputation: 245Reputation: 245

If you don't find any other explanation, check to see if you are getting disk I/O errors. Sometimes adding files to a disk puts the files in a previously unused (bad) area of the disk. Later attempts to read the files can then get I/O errors that cause retries, slowing down reading of the files.
 
Old 05-12-2013, 01:07 PM   #17
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 766

Original Poster
Rep: Reputation: 92
Turns out this is a documented bug on the SUSE mailing list. So not just a Slackware issue.

http://lists.opensuse.org/opensuse-b.../msg03569.html

For now I have created a separate script in /etc/rc.d and called it rc.update-icon-cache. I call it from rc.M. At least now I can switch it off when I don't need it, which is nearly always.

Won't mark it closed just yet on the off chance that maybe someone with the skills can suggest a way of automating the on/off function to detect when new icons are added and run it or not as the need requires.
 
1 members found this post helpful.
Old 05-12-2013, 09:33 PM   #18
zakame
Member
 
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 121

Rep: Reputation: 42
Pretty much. Unless you just chmod -x gtk-update-icon-cache and friends (update-gtk-* etc.)
 
Old 05-12-2013, 09:41 PM   #19
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 858

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
Quote:
Originally Posted by vdemuth View Post
Turns out this is a documented bug on the SUSE mailing list. So not just a Slackware issue.
Using icon caches at all is a problem, since once you create them they must be kept updated continually or any new icons that are added to the system won't work.

No official Slackware package creates them. I would just run this and be done with the problem:

Code:
find /usr/share/icons -name icon-theme.cache -exec rm "{}" \;
 
1 members found this post helpful.
Old 05-13-2013, 10:29 AM   #20
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 766

Original Poster
Rep: Reputation: 92
Quote:
Originally Posted by volkerdi View Post
Using icon caches at all is a problem, since once you create them they must be kept updated continually or any new icons that are added to the system won't work.

No official Slackware package creates them. I would just run this and be done with the problem:

Code:
find /usr/share/icons -name icon-theme.cache -exec rm "{}" \;

Wow, thanks. I am honoured that you have seen fit to comment in this thread.

But if I do that, what happens when I do install some new ones. Is there any way of undoing what you suggest? and what if anything is the alternative?
 
Old 05-13-2013, 12:45 PM   #21
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 858

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
Quote:
Originally Posted by vdemuth View Post
But if I do that, what happens when I do install some new ones. Is there any way of undoing what you suggest?
All that command line does is get rid of icon cache files that (IMO) don't need to be there. If you didn't make those manually, then they were probably created by a package that came from outside of the official Slackware package tree. OK, I might have done it... there were a couple of times when a package was pulled into -current that did this, though they were quickly fixed. The need for icon caches is pretty debatable on a machine that's got a decent amount of RAM, as the icon files will end up cached through the normal filesystem caching anyway.

If you remove the icon caches, then if you install new icons they'll be used. Otherwise, the caches are preferred and the new icons won't be used until the caches are rebuilt to include them.

Quote:
and what if anything is the alternative?
The alternative to removing the icon caches is keeping them up to date whenever new icons are installed. If you do that you won't need to call the update script in rc.M which is there to try to fix problems for people who ended up with cache files somehow and probably didn't even know it.
 
1 members found this post helpful.
Old 05-13-2013, 01:07 PM   #22
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 766

Original Poster
Rep: Reputation: 92
Excellent, thanks so much for the explanation. As I have a fairly old, but fairly powerful laptop, (well in it's day anyway) with 4Gb of ram, I'll run that command and then leave it well alone.

From what I understand anyway, as a KDE user I don't really need to worry to much about the icon cache as it seems to be mainly Gnome/GTK that needs it.

Thank you for your assistance.
 
  


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
Slow boot time on Acer Aspire One Netbook TJL Linux - Laptop and Netbook 2 04-01-2010 05:13 AM
VERY slow boot time on laptop zachstauffer Linux - Laptop and Netbook 12 01-06-2010 09:12 AM
Slow boot time after update... not upgrade Noahetrex Fedora 3 08-31-2009 03:49 PM
Gutsy Boot-up Time Slow. Ordinary12 Ubuntu 8 02-09-2008 05:06 PM
Very slow boot time with F8 koady Fedora 2 11-20-2007 06:27 AM


All times are GMT -5. The time now is 05:17 PM.

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