Icon extractor for linux apps
Tommy Reynolds
Tommy.Reynolds at MegaCoder.com
Sat Sep 23 18:17:55 UTC 2006
Uttered "John Babich" <jmbabich at gmail.com>, spake thus:
> Does any one know of a linux utility that extracts embedded icons from a
> linux
> application? I know of several such utilities for Windows.
>
> If such a utility doesn't exist, is there an alternate method to achieve the
> same results.
You are right: icons in Linux applications are not packaged in a
resource file like WinDoze duz. Instead, they are either separate
files installed by the RPM, or they are embedded in the program text
where they look a lot like orginary code.
Two solutions come to mind:
1) Pick them out of the RPM file. Say you have a program "foo" and
you know there are icons associated with it. Using The Force,
Luke, you can use this command line string:
$ rpm -q -f $(which foo) -l | egrep -i '.(png|jpg|gif|xpm|xbm)$'
to see a list of image files installed by the RPM which owns the
executable "foo". (If you already know the path to the "foo"
executable, just replace the "$(which foo)" with that path.
2) Cheat by using a screen shot...
HTH
--
I'm already an anomaly, I shall soon be an anachronism, and I have
every intention of dying an abuse!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20060923/dbcfcd0d/attachment.sig>
More information about the fedora-docs-list
mailing list