Yelp or gnome-help in linux mint

Forum rules
Before you post please read this

Yelp or gnome-help in linux mint

Postby minttux on Sat Mar 30, 2013 5:04 am

hi buddies
if you want real yelp (browse man page in gui) and you don't want to redirect to linux mint website docs
i made a simple script
put mn script in your /usr/bin/
so you will have /usr/bin/mn
run it by type mn alone or with doc name parameter like:
$ mn ls
or alone
$ mn
then you see this. enter your command that you want to see man page for it:
Image
then you see:
Image

if you want to have it in your menu in cinnamon you can right click on Menu then click on Edit menu
Image
then go to this path and edit command field and change it to mn:
Image

also you can download this script from this link:
http://www.4shared.com/zip/RgXKCQDZ/mn_online.html

Thanks
D.Rikhtehgaran
Attachments
mn.zip
man gui page script
(483 Bytes) Downloaded 89 times
User avatar
minttux
Level 1
Level 1
 
Posts: 6
Joined: Wed Oct 31, 2012 11:51 pm

Linux Mint is funded by ads and donations.
 

Re: Yelp or gnome-help in linux mint

Postby karlchen on Sat Mar 30, 2013 9:20 am

Hello, minttux.

Thank you for sharing your little script with us. :)

Here is the explanation why on Mint launching yelp will launch the default browser and load the Mint documentation:

The Mint makers
+ added their own version of yelp to the folder /usr/local/bin
+ made sure /usr/local/bin will be searched before /usr/bin when following the $PATH variable.
The original yelp executable which will launch the local help system on your disk is still present and lives in /usr/bin.

So there are two trivial approaches to making yelp do what it should do: launch the local help system on your disk:
  1. Change the PATH variable in such a way that /usr/bin will be searched prior to /usr/local/bin.
    Note:
    Doing so will not only affecct yelp, but apt, too, basically any command which lives in /usr/local/bin and /usr/bin in two different versions.
  2. Rename the file /usr/local/bin/yelp to /usr/local/bin/yelp.mint.
    That is all.
    Effect: yelp will do what we expect. Launching yelp.mint will take you to the Mint documentation.
    Side-effects: None
Note:
This second solution has been posted in a different thread by user iveand, not me: Gnome application help does not work in Mint 13 XFCE

Cheers,
Karl
User avatar
karlchen
Level 11
Level 11
 
Posts: 3526
Joined: Sat Dec 31, 2011 7:21 am

Re: Yelp or gnome-help in linux mint

Postby Habitual on Fri Sep 06, 2013 2:36 pm

n/m
What's a landing but a take off in reverse?
My DorkBlog
User avatar
Habitual
Level 8
Level 8
 
Posts: 2140
Joined: Sun Nov 21, 2010 8:31 pm
Location: Undecided

Re: Yelp or gnome-help in linux mint

Postby karlchen on Fri Sep 06, 2013 5:01 pm

Habitual wrote:n/m
Can we get a little bit more verbose translation, please?
User avatar
karlchen
Level 11
Level 11
 
Posts: 3526
Joined: Sat Dec 31, 2011 7:21 am

Re: Yelp or gnome-help in linux mint

Postby karlchen on Sat Oct 12, 2013 10:30 am

Hm, seems as if I was wrong when I wrote
karlchen wrote:Side-effects: None
About the side-effects see here: Mint help.

In shorts words:
  • By renaming /usr/local/bin/yelp to yelp.mint we re-enable access to the local helpfiles of our applications
  • But we render menu items useless which simply launch "yelp" without any arguments.
  • The reason is: genuine yelp will fail without a valid commandline argument,
  • Solution:
    Edit the affected Mint Menu item(s) to call yelp.mint and not yelp.
    Note:
    The exact steps how this can be done may be slightly different and depend on the desktop environment in use: Mate, Cinnamon, KDE or xfce.
User avatar
karlchen
Level 11
Level 11
 
Posts: 3526
Joined: Sat Dec 31, 2011 7:21 am


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 1 guest