Thursday, January 3, 2008

Read CHM file with Firefox in Linux

With several steps done,I made myself able to read chm files with Firefox in Ubuntu.
  1. Add the extension CHM Reader
  2. Save the following shell script as readchm.sh (or any other name you like) to /usr/local/bin (or any place you like).

    #!/bin/sh

    firefox "chm:file:///$1"

    exit 0

  3. Change the script to excutable file:
    chmod 755 /usr/local/bin/readchm.sh
  4. Right click a chm file,choose "Open with another Appication",click "Usa a custom command",type in
    /usr/local/bin/readchm.sh
  5. Click "Open".
Note:By default,you will find that the table of content is missing in firefox,you can get it by clicking View-Sidebar-CHM Reader.

No comments: