Script appears broken in Ubuntu 10.04

94 views
Skip to first unread message

Jay Lovell

unread,
Jan 24, 2011, 5:12:18 PM1/24/11
to chm2pdf
Script doesn't work in ubuntu 10.04. Appears to want to start
htmldoc GUI. This is run in shell window from Windows PC. If I
run it from shell window in ubuntu, it simply starts up a blank
htmldoc (worthless since there are no html files). exiting the
htmldoc gui simply exists the script. regardless of which way, no
PDF file is created.

root@firebird:/mirror/CHM/temp# chm2pdf --book test.chm
Can't open display:
Something wrong happened when launching htmldoc.
exit value: 256
Check if output exists or if it is good.
Done.

ms

unread,
Jan 24, 2011, 5:48:03 PM1/24/11
to chm...@googlegroups.com

Why do you run it as root?


--
Massimo Sandal, Ph.D.
http://devicerandom.org

Chris Karakas

unread,
Feb 8, 2011, 11:02:22 AM2/8/11
to chm...@googlegroups.com
I would change things so that "htmldoc" starts the command-line tool and not the GUI.

If this is not an option, you could open the chm2pdf script in an editor and change the 'htmldoc' to 'XXXX' in:

exit_value=os.system ('htmldoc' + htmldoc_opts + ' ' + htmlout_filename_list + " -f "+ outputfilename + " > /dev/null")

where 'XXXX' means the "command-line invocation of htmldoc in your system".

-- 
Regards

Chris Karakas
http://www.karakas-online.de

-----Ursprüngliche Nachricht-----
Von: ms <device...@gmail.com>
Gesendet: Jan 24, 2011 11:48:03 PM
An: chm...@googlegroups.com
Betreff: Re: Script appears broken in Ubuntu 10.04

>--
>Hai ricevuto questo messaggio perché sei iscritto al gruppo "chm2pdf" di Google Gruppi.
>Per postare messaggi in questo gruppo, invia un'email a chm...@googlegroups.com.
>Per annullare l'iscrizione a questo gruppo, invia un'email a chm2pdf+u...@googlegroups.com.
>Per ulteriori opzioni, visita il gruppo all'indirizzo http://groups.google.com/group/chm2pdf?hl=it.
>

Reply all
Reply to author
Forward
0 new messages