| Author |
Message |
PANZERKOPF
Joined: 16 Dec 2009 Posts: 251 Location: Earth
|
Posted: Sun 02 May 2010, 09:52 Post_subject:
PZCHMView Sub_title: Simple CHM file viewer. |
|
Created for using with Puppy 4.3.x
Uses default html viewer. (You may change it's name by editing a corresponding variable).
Works in text and graphical modes.
No dependencies, all tools and libs included into package.
(If you want to use it in text mode, you must install any console web browser).
| Description |
|

Download |
| Filename |
pzchmview-1.0.pet |
| Filesize |
14.63 KB |
| Downloaded |
651 Time(s) |
_________________ SUUM CUIQUE.
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3692 Location: Charleston S.C. USA
|
Posted: Sun 02 May 2010, 10:29 Post_subject:
What is a CHM file? |
|
What is a CHM file?
I see you are from Earth. I've been to that planet, but they are so primitive. They still use Windows!
|
|
Back to top
|
|
 |
PANZERKOPF
Joined: 16 Dec 2009 Posts: 251 Location: Earth
|
Posted: Sun 02 May 2010, 11:23 Post_subject:
Re: What is a CHM file? |
|
| bigpup wrote: | | What is a CHM file? |
Microsoft compiled HTML help file.
| bigpup wrote: |
I see you are from Earth. I've been to that planet, but they are so primitive. They still
use Windows! |
Sorry but "primitive" people from this planet sometimes want to read some usefull books compiled as CHM.
_________________ SUUM CUIQUE.
|
|
Back to top
|
|
 |
jrb

Joined: 11 Dec 2007 Posts: 974 Location: Smithers, BC, Canada
|
Posted: Sun 02 May 2010, 15:20 Post_subject:
|
|
Thank you PANZERKOPF,
I do need to read chm files from time to time but do not have seamonkey or firefox installed so could never use chmsee. This does a great job on its own! I've just installed it in my woofed up version of quirky21 and it is displaying files in Netsurf quite nicely.
One problem with your pet, there is no pet.specs file in the pet so petget manager will not uninstall it. I extracted your pet and reran it through dir2pet and created a pet with pet.specs in it. I was able to reinstall and then uninstall (just to make sure it would work, I immediately installed it again).
While I was rebuilding it I also included a new /root/Choices/MIME-types/application_x-chm with this code:
| Code: | #! /bin/sh
exec pzchmview "$1" | Now I can click on a .chm file and it will open in defaulthtmlviewer.
Thanks again, J
Edit: Reworked .pet attached
| Description |
PANZERKOPF's .pet with pet.specs and application_x-chm
|

Download |
| Filename |
pzchmview-1.0b.pet |
| Filesize |
15.13 KB |
| Downloaded |
570 Time(s) |
_________________ SFS-TCZ_Linker, http://puppylinuxstuff.meownplanet.net/choicepup/ user=puppy, password=linux
Edited_time_total
|
|
Back to top
|
|
 |
jemimah

Joined: 26 Aug 2009 Posts: 4309 Location: Tampa, FL
|
Posted: Mon 03 May 2010, 20:04 Post_subject:
|
|
Nice, I'm adding this to Puppeee.
|
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Wed 05 May 2010, 06:31 Post_subject:
|
|
@ jrb
Can you upload your updated PET file for members?
Thanks in advance
|
|
Back to top
|
|
 |
jrb

Joined: 11 Dec 2007 Posts: 974 Location: Smithers, BC, Canada
|
Posted: Thu 06 May 2010, 09:00 Post_subject:
|
|
Reworked .pet attached to post above.
_________________ SFS-TCZ_Linker, http://puppylinuxstuff.meownplanet.net/choicepup/ user=puppy, password=linux
|
|
Back to top
|
|
 |
PANZERKOPF
Joined: 16 Dec 2009 Posts: 251 Location: Earth
|
Posted: Thu 06 May 2010, 15:50 Post_subject:
|
|
| jrb wrote: | | Reworked .pet attached to post above. |
Thanks for addition!
_________________ SUUM CUIQUE.
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6874 Location: Perth, Western Australia
|
Posted: Mon 10 May 2010, 09:35 Post_subject:
|
|
Hi, I installed the 1.0b PET, but it doesn't work properly for me.
I downloaded three .chm files, they all have the same problem. When I click on one, it opens in my browser -- a page of links, I click on a link and get "Page not found", I click the go-back button and get "Page not found".
It seems that whatever got created in /tmp got immediately erased, I look and there is nothing in /tmp, even while the .chm file is being viewed.
Here is where I got a couple of the .chm files:
http://code.google.com/p/htmlhelp/downloads/list?q=label:CHM
Looking at your script, I see the problem. Quirky does not have a HTML viewer as such, uses the full SeaMonkey. In the second last line, SeaMonkey gets launched in a tab-window and there is an immediate return to the script, then the files in /tmp get deleted.
I have attached a workaround, which detects the special condition and does not delete the files in /tmp. Not a very satisfactory solution though.
 |
| Description |
|

Download |
| Filename |
pzchmview.gz |
| Filesize |
900 Bytes |
| Downloaded |
567 Time(s) |
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
PANZERKOPF
Joined: 16 Dec 2009 Posts: 251 Location: Earth
|
Posted: Mon 10 May 2010, 18:25 Post_subject:
|
|
Hi Barry !
I newer used seamonkey but installed it especially for simulate this error.
This is what I understood:
1) The "mozstart" executes seamonkey with "exec" command and immediately
exits.
3) Chmviewer goes to last string and erases all temporary html files.
2) Seamonkey continues running as a separate process but all needed files are erased.
We can use directly "seamonkey" script instead of "mozstart" for solving this problem (IMHO).
_________________ SUUM CUIQUE.
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6874 Location: Perth, Western Australia
|
Posted: Mon 10 May 2010, 22:01 Post_subject:
|
|
Oh, of course, dumb me.
For SM 2.0.4, /usr/bin/seamonkey is a symlink to /usr/lib/seamonkey/seamonkey, which is a script that runs SM but exits immediately.
The solution is to run the binary executable directly, ex:
/usr/lib/seamonkey/seamonkey-bin file:///usr/share/doc/index.html
...so, if that is put into your script, test that 'gtkmoz' exists, check that it is a symlink to 'mozstart', then check that /usr/lib/seamonkey/seamonkey-bin exists, if all 3 are true then run seamonkey-bin directly.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
PANZERKOPF
Joined: 16 Dec 2009 Posts: 251 Location: Earth
|
Posted: Tue 11 May 2010, 09:43 Post_subject:
|
|
I think that my some researches are wrong. When chmviewer uses defauthtmlviewer script (which also uses "exec" for executing viewer) this problem doesn't appear. It only appears when chmviewer uses mozstart and seamonkey is running at this time (opens files in new tab).
_________________ SUUM CUIQUE.
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6874 Location: Perth, Western Australia
|
Posted: Tue 11 May 2010, 20:11 Post_subject:
|
|
| PANZERKOPF wrote: | | I think that my some researches are wrong. When chmviewer uses defauthtmlviewer script (which also uses "exec" for executing viewer) this problem doesn't appear. It only appears when chmviewer uses mozstart and seamonkey is running at this time (opens files in new tab). |
I'm using SeaMonkey 2.0.4.
If I run this in a terminal:
# seamonkey file:///usr/share/doc/index.html
#
There is an immediate return to the prompt.
This must be different from how SeaMonkey 1.1.18 works.
_________________ http://bkhome.org/blog2/
Edited_time_total
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6874 Location: Perth, Western Australia
|
Posted: Tue 11 May 2010, 20:31 Post_subject:
|
|
Ah, I think that I will fix it in my seamonkey package. I'll make /usr/bin/seamonkey a link to /usr/lib/seamonkey/seamonkey-bin. I don't think that there is any need to run the /usr/lib/seamonkey/seamonkey startup script.
Then your script will work.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6874 Location: Perth, Western Australia
|
Posted: Tue 11 May 2010, 23:32 Post_subject:
|
|
I was getting confused about the real cause of the problem. Have sorted it out, see my blog post:
http://bkhome.org/blog/?viewDetailed=01582
I have created pzchmview-1.0c.pet, here is the script:
| Description |
|

Download |
| Filename |
pzchmview.gz |
| Filesize |
1.01 KB |
| Downloaded |
554 Time(s) |
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
|