Re: [gentoo-user] How can I bring back Konqueror as my man page viewer?

2012-08-18 Thread Mick
On Saturday 18 Aug 2012 06:51:54 Nilesh Govindrajan wrote:
 On Sat 18 Aug 2012 06:21:55 AM IST, Nikos Chantziaras wrote:
  In KDE, I'm very used to simply type man:foo and have the man page
  of foo pop up immediately in Konqueror without having to open a
  terminal or anything.
  
  However, since I installed Chromium and making it my default browser,
  now man: brings up Chromium instead.  That doesn't work; instead of
  displaying the man page, it downloads the *.bz2 from the local file
  system :-/
  
  How can I set Konqueror to be the program that handles KDE's man:
  command?
 
 Umm, my default browser is Firefox, but when I open Konqueror and type
 man:ls I get to see the man page.
 But if I launch using Alt+F2, it opens Firefox.
 
 I think this needs some xdg tweaking, using xdg-mime. I don't know the
 type of URL for man:, else could have posted the  command.

The solution may be to find out the mime type of man pages, then create a 
.desktop file to handle it and use xdg-settings to set it up.  I am thinking 
along the lines of:

 [Desktop Entry]
 # ... 
 Exec=/usr/bin/konqueror %U
 MimeType=text/man_page_thing;text/bz2;

or similar.  However, the problem is that man pages are not a distinct mime 
type, but compressed text files.  So this may cause konqueror to become the 
default application for opening all such mime types - which will be a pain.  
Not sure if a default application can be defined on a path basis, whereby only 
text files in e.g. /usr/share/man/man1/* would be opened with Konqueror.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How can I bring back Konqueror as my man page viewer?

2012-08-18 Thread Volker Armin Hemmann
Am Samstag, 18. August 2012, 03:51:55 schrieb Nikos Chantziaras:
 In KDE, I'm very used to simply type man:foo and have the man page of
 foo pop up immediately in Konqueror without having to open a terminal
 or anything.
 
 However, since I installed Chromium and making it my default browser,
 now man: brings up Chromium instead.  That doesn't work; instead of
 displaying the man page, it downloads the *.bz2 from the local file
 system :-/
 
 How can I set Konqueror to be the program that handles KDE's man: command?

open system-settings. Open mime/applications/whatever submenu (called 
'Dateizuordnungen' in German). 

application-xtroff-man
and
application-xtroff-man-compressed

should be the things you have to set. Click on 'embedded' and choose KManPart

And that it is always shown in the embedded part.

We are talking about KDE here - not gnome. It should not be necessary to fiddle 
with desktop files. 

-- 
#163933



[gentoo-user] How can I bring back Konqueror as my man page viewer?

2012-08-17 Thread Nikos Chantziaras
In KDE, I'm very used to simply type man:foo and have the man page of 
foo pop up immediately in Konqueror without having to open a terminal 
or anything.


However, since I installed Chromium and making it my default browser, 
now man: brings up Chromium instead.  That doesn't work; instead of 
displaying the man page, it downloads the *.bz2 from the local file 
system :-/


How can I set Konqueror to be the program that handles KDE's man: command?




Re: [gentoo-user] How can I bring back Konqueror as my man page viewer?

2012-08-17 Thread Nilesh Govindrajan

On Sat 18 Aug 2012 06:21:55 AM IST, Nikos Chantziaras wrote:

In KDE, I'm very used to simply type man:foo and have the man page
of foo pop up immediately in Konqueror without having to open a
terminal or anything.

However, since I installed Chromium and making it my default browser,
now man: brings up Chromium instead.  That doesn't work; instead of
displaying the man page, it downloads the *.bz2 from the local file
system :-/

How can I set Konqueror to be the program that handles KDE's man:
command?




Umm, my default browser is Firefox, but when I open Konqueror and type 
man:ls I get to see the man page.

But if I launch using Alt+F2, it opens Firefox.

I think this needs some xdg tweaking, using xdg-mime. I don't know the 
type of URL for man:, else could have posted the  command.


--
Nilesh Govindrajan
http://nileshgr.com