Thank you.01micko wrote:Bigpup seems to have found a bug in Slacko testing. On first run of Pburn, opening the help from the menu fails.
It failed as long as Language was set to 'auto' (related to shinobars improvement). Now fixed.
Sigmund
Code: Select all
dd if=/dev/zero of=/dev/sr0 bs=32k count=32
The last line should take it back to the initial value, but fails because pburnrc is written during 'func -install'. Now fixed. Thank you!!!!shinobar wrote:@zigbert
I don't like the LANGUAGE setting, which is saved in the pburnrc, is modified by the script.pburn line 241- wrote:#install helptext
TMP_LANG=$LANGUAGE
[ ! -s /usr/share/doc/pburn/$LANGUAGE.html ] && export LANGUAGE=en
$APPDIR/func -install #check help variables
if [ -s $HOME/.pburn/pburnhlp-$LANGUAGE ]; then
. $HOME/.pburn/pburnhlp-$LANGUAGE #read help text (preferable in installed language)
else
. $HOME/.pburn/pburnhlp-auto
fi
export LANGUAGE=$TMP_LANG
Pburn has become more than a Puppy-app, so I try to keep it less Puppy-specific.shinobar wrote:How about using pman to search the help file?
http://www.murga-linux.com/puppy/viewtopic.php?t=56887pman searches documents in the order of the following...
2. under /usr/share/doc/help/$lang, where $lang is determined from $LANG.
For your information,zigbert wrote:I tried the latest Pman, but it didn't catch the Pburn help-file.
Code: Select all
sh-4.1# ISOFILE=/mnt/sdb1/Puppy_Archives/downloads/fatdog64/Fatdog64-600b2.iso
sh-4.1# echo "$( md5sum $ISOFILE | cut -f 1 -d " " )"
4b695686a0a3d8ab7c9c739431337427
sh-4.1# CDR=/dev/sr0
sh-4.1# echo "$(dd if=$CDR 2>> /tmp/burniso2cd.log | head -c `stat --format=%s $ISOFILE` | md5sum | cut -f 1 -d " " )"
4b695686a0a3d8ab7c9c739431337427
sh-4.1# BURNDEV=$CDR
sh-4.1# echo "$( dd if=$BURNDEV 2> /dev/null | md5sum | cut -f 1 -d " " )"
9924796f7e0a5fd3181ed78e2480a29e
sh-4.1# echo "$( dd if=$BURNDEV 2> /dev/null | head -c `stat --format=%s $ISOFILE` | md5sum | cut -f 1 -d " " )"
4b695686a0a3d8ab7c9c739431337427
I have moved the NLS-help-files to /usr/share/doc/help/$LANG/pburn.html, so that should be ok now. But where is the 'correct' place for the english (native) help-file. Will it be in:shinobar wrote:For your information,zigbert wrote:I tried the latest Pman, but it didn't catch the Pburn help-file.
pman searches files from /usr/share/doc/help/$LANG/pburn.html, /usr/share/doc/pburn_$LANG.html, /usr/share/doc/pburn.html, /usr/share/doc/pburn/pburn.html, /usr/share/doc/pburn/index.html ...
case "$(<$WORKDIR/MEDIATYPE_FULL)" in
'DVD-rom (DVD-RW)') echo "$PRIORITY""dvd+rw-format -force $BURNDEV" >> $WORKDIR/exec;;
#DVD+RW and BD-RE works with quick blanking using dd
#but -check_media) still reads the burnt size
#so, for now we keep it the conservative way...
*) echo "$PRIORITY""dvd+rw-format -force $BURNDEV" >> $WORKDIR/exec;;
#echo "$PRIORITY""dd if=/dev/zero of=$BURNDEV bs=32k count=256" >> $WORKDIR/exec;;
esac
Fixed.Henry wrote:Thanks, Zigbert,
Link not updated in first post, is:
http://www.meownplanet.net/zigbert/pburn-3.7.0.pet
Code: Select all
pburn -c
Code: Select all
growisofs -Z /dev/sr0 -f -iso-level 3 -D -R -J -joliet-long /root/.pburn
Code: Select all
dvd+rw-format -force /dev/sr0
Code: Select all
growisofs -Z /dev/sr0=/dev/zero
Code: Select all
[ $LANGUAGE = auto ] && NLS=$LANG || NLS=$LANGUAGE #$NLS is temporarly, and only used here
if [ -f /usr/share/doc/help/${NLS%.*}/pburn.html ]; then
$BROWSER /usr/share/doc/help/${NLS%.*}/pburn.html &
elif [ -f /usr/share/doc/help/${NLS%_*}/pburn.html ]; then #fallback to macrolanguage if available (ISO 639-1 two letter code: en, es, fr, etc.)
$BROWSER /usr/share/doc/help/${NLS%_*}/pburn.html &
else
$BROWSER /usr/share/doc/pburn.html &
fi
Code: Select all
for I in `echo "$TMP" | grep -F "ffmpeg" | awk '{print $1}'`; do kill -9 $I 2> /dev/null; done