On Tue, 2005-03-22 at 19:10 +1200, Roger Searle wrote:
> Hi - I can use
> [EMAIL PROTECTED]:~> locate ethereal | grep bin
> /usr/X11R6/bin/ethereal

if you are looking for the ethereal binary, 

which ethereal

will find it faster :)

whereas:

whereis ethereal

will also give you information about where the man page, the config
files, and some other stuff is.

eg:

[EMAIL PROTECTED] nick $ which ethereal
/usr/bin/ethereal
[EMAIL PROTECTED] nick $ whereis ethereal
ethereal: /usr/bin/ethereal /etc/ethereal /usr/lib/ethereal /usr/share/ethereal 
/usr/man/man1/ethereal.1.gz /usr/share/man/man1/ethereal.1.gz


(don't worry about the fact that my distro may install files in
different directories to yours)


> 
> and create a desktop icon to launch it, but can't find the usual icon - 
> locate ethereal | grep icon or grep ico gives nothing.  Where would I 
> locate the icon?  It's not one of the standard ones available through 
> the properties of a desktop icon.

all good search techniques.

however you don't know what format the icon will be in: .xpm, .png
others may also apply.

try this:

rpm -qf /usr/X11R6/bin/ethereal


this will give you the name of the package that the ethereal binary was
in. (you may already know the name, lets assume the answer is in fact
ethereal)

rpm -ql ethereal

will give tyou a list of files installed in that package, which will
hopefully find the icon.

OTOH, some desktop mamangers like kde/gnome or their respective theme
thingies install their own idea of icons for common programs.


my own research on my gentoo machines shows:

[EMAIL PROTECTED] nick $ qpkg -l ethereal|grep icon
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/16x16
/usr/share/icons/hicolor/16x16/apps
/usr/share/icons/hicolor/16x16/apps/ethereal.png
/usr/share/icons/hicolor/32x32
/usr/share/icons/hicolor/32x32/apps
/usr/share/icons/hicolor/32x32/apps/ethereal.png
/usr/share/icons/hicolor/48x48
/usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/ethereal.png


But again your mileage will vary per distro.


> 
> Cheers,
> Roger
> 
-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to