1 |
On Saturday 18 Aug 2012 06:51:54 Nilesh Govindrajan wrote: |
2 |
> On Sat 18 Aug 2012 06:21:55 AM IST, Nikos Chantziaras wrote: |
3 |
> > In KDE, I'm very used to simply type "man:foo" and have the man page |
4 |
> > of "foo" pop up immediately in Konqueror without having to open a |
5 |
> > terminal or anything. |
6 |
> > |
7 |
> > However, since I installed Chromium and making it my default browser, |
8 |
> > now "man:" brings up Chromium instead. That doesn't work; instead of |
9 |
> > displaying the man page, it downloads the *.bz2 from the local file |
10 |
> > system :-/ |
11 |
> > |
12 |
> > How can I set Konqueror to be the program that handles KDE's "man:" |
13 |
> > command? |
14 |
> |
15 |
> Umm, my default browser is Firefox, but when I open Konqueror and type |
16 |
> man:ls I get to see the man page. |
17 |
> But if I launch using Alt+F2, it opens Firefox. |
18 |
> |
19 |
> I think this needs some xdg tweaking, using xdg-mime. I don't know the |
20 |
> type of URL for man:, else could have posted the command. |
21 |
|
22 |
The solution may be to find out the mime type of man pages, then create a |
23 |
.desktop file to handle it and use xdg-settings to set it up. I am thinking |
24 |
along the lines of: |
25 |
|
26 |
[Desktop Entry] |
27 |
# ... |
28 |
Exec=/usr/bin/konqueror %U |
29 |
MimeType=text/man_page_thing;text/bz2; |
30 |
|
31 |
or similar. However, the problem is that man pages are not a distinct mime |
32 |
type, but compressed text files. So this may cause konqueror to become the |
33 |
default application for opening all such mime types - which will be a pain. |
34 |
Not sure if a default application can be defined on a path basis, whereby only |
35 |
text files in e.g. /usr/share/man/man1/* would be opened with Konqueror. |
36 |
-- |
37 |
Regards, |
38 |
Mick |