Using kchmviewer

Linux specific forum
AZJIO
Addict
Addict
Posts: 2155
Joined: Sun May 14, 2017 1:48 am

Using kchmviewer

Post by AZJIO »

I solved the problems of running help using kchmviewer. Previously, kchmviewer opened a new window every time. Now kchmviewer is being forcibly closed.

Commandline: sh
Arguments: /home/user/Apps/purebasic/tools/kill-kchmviewer.sh %WORD /home/user/Apps/purebasic/PureBasic.chm

The contents of the file kill-kchmviewer.sh

Code: Select all

#!/bin/sh
# sh
# /home/user/Apps/purebasic/tools/kill-kchmviewer.sh %WORD /home/user/Apps/purebasic/PureBasic.chm
# wmctrl -F -c 'kchmviewer - Title'
# killall kchmviewer
kchmviewer -token alf -index $1 $2
Previously, I used the commands

Code: Select all

Commandline: kchmviewer
Arguments: -token alf -index %WORD /home/user/Apps/PureBasic/PureBasic.chm

Commandline: kchmviewer
Arguments:-token alf -search %WORD /home/user/Apps/PureBasic/PureBasic.chm

Commandline: xchm
Arguments: /home/user/Apps/PureBasic/PureBasic.chm
Last edited by AZJIO on Sat Feb 01, 2025 4:36 pm, edited 2 times in total.
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: Using kchmviewer

Post by deseven »

Shells in non-interactive mode could have a different PATH. Check that kchmviewer is accessible that way. You can add something like

Code: Select all

echo "$PATH" > /tmp/debug.txt
to your script to make sure that PATH actually includes a directory where your kchmviewer is located.
AZJIO
Addict
Addict
Posts: 2155
Joined: Sun May 14, 2017 1:48 am

Re: Using kchmviewer

Post by AZJIO »

Post Reply