Where is the Okular executable located on my drive?

I’m trying to find Okular, so that I can make it the default for PDFs for Firefox (which defaults to GIMP).

I’m running Suse 11.4.

On 02/08/2012 11:16 PM, WantOS2Back wrote:
> I’m trying to find Okular

-open a terminal
-type

which okular

-you answer will be returned


DD http://tinyurl.com/DD-Caveat
Read what Distro Watch writes: http://tinyurl.com/SUSEonDW

Thanks! I’ll remember that trick! “Find” didn’t find it for me, but this worked perfectly.

On 2012-02-08 23:16, WantOS2Back wrote:
> for Firefox (which defaults to GIMP).

It doesn’t, unless you happen to have certain setup which I don’t remember
right now. There was a long thread about this perhaps years ago. Maybe even
a bugzilla.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 02/08/2012 02:16 PM, WantOS2Back wrote:
>
> I’m trying to find Okular, so that I can make it the default for PDFs
> for Firefox (which defaults to GIMP).
>
> I’m running Suse 11.4.
>
>
You can try, within the Firefox:

Edit > Preferences > Applications: go down the list of ‘Content Type’,
pick ‘PDF document’, click on the ‘Action’ box, select ‘use okular’
(assuming ‘Okular’ is installed).

find will find all files with the name ocular (in your case), from the startpoint of the search downward in the directory tree. Thus when you start searching from the root / that file must be found (if on the system):

find / -name ocular

The result could be many files of that name (though this is not likely) and amongst them is the one you are looking for. Thus when ocular is on your system (very likely), you did something wrong with your find command.

which will tell you which (if found) executable file is found with the name ocular when the contents of the PATH environment variable is used as intended. There will be at he most one answer (because searching through the different patthes is stopped on the first match). This is of course different from *find, *but in your case, exactly what you want.

Read

man witch

and

man find

and you may come to the conclusion that it is not a trick, but just plain sober knowledge.

On Thu, 09 Feb 2012 16:26:03 +0530, hcvv <hcvv@no-mx.forums.opensuse.org>
wrote:

> Code:
> --------------------
> man witch
> --------------------

i don’t know about any witch-management or -hunting programs in openSUSE.
what you meant is, i believe, “man which”.

rotfl!rotfl! :shame:
You are correct. I do mean

man which

But I would like to have a program witch (of course inclusing a man page), though my fantasy runs riot now about what it should do lol!

On 02/09/2012 12:06 PM, phanisvara das wrote:
> i don’t know about any witch-management or -hunting programs in
> openSUSE. what you meant is, i believe, “man which”.


denverd@linux-os114:~> which witch
/home/denverd/bin/witch
denverd@linux-os114:~>man witch
No manual entry for witch
denverd@linux-os114:~>

so, no control of witch here!


DD