Here though I'm certain you've spelt out the complete solution for me now - I'll get some time later today to finetune my openfile.sh, and snip off yet another string from my puppetmaster, Mr Gates
PS Again, your help on this matter is really, REALLY appreciated - by myself and nearly 1000 onlookers to this thread.
UPDATE:
YAHOOOO
I think I can safely call this request "FILLED".
Many Thanks to Geoffrey and Ariel for their impetus to get this over the line. SciPlore (FreeMind Scholar) is just about to evolve into FreePlane-based "Docear" that hopefully won't encounter the XDG-open problem in Puppy. SciPlore in Puppy however will still require some manual massage to have it working to the user's requirements. Here's the copy of my openfile.sh:
Code: Select all
#!/bin/bash
#this script opens files within freemind-0.9.0
#to use install the script in /usr/bin
#open freemind and go to Tools>Preferences>HTML menu
#in Defaul Browser Command Other Os, insert this command: openfile.sh {0}
#save
#quit freemind and launch it again
#
#you can add other programs provided you add the extension of the file you want to launch (last 3 characters)
ext=`echo "$@" | sed 's/.*\(...\)$/\1/'`
if [ "$ext" == doc ] ; then abiword "$@"
elif [ "$ext" == txt ] ; then abiword "$@"
elif [ "$ext" == tml ] ; then firefox "$@"
elif [ "$ext" == abw ] ; then abiword "$@"
elif [ "$ext" == pdf ] || [ "$ext" == PDF ] ; then evince "$@"
# elif [ "$ext" == pdf ] || [ "$ext" == PDF ] ; then FoxitReader "$@"
elif [ "$ext" == jpg ] || [ "$ext" == JPG ] ; then viewnior "$@"
# elif [ "$ext" == jpg ] || [ "$ext" == JPG ] ; then evince "$@"
fi
[Test environment: using pemasu's Polarpup-003, Woof, kernel 2.6.39-3(i686); Geoffrey's SciPlore 15beta pet; Ariel's openfile and cgj-jre-4-4-4-3-lucid pets (latter might not be required); ttuuxx's jre-6u26-1-i386 and evince-2.30.3-i386 pets; and the FoxitReader-1.1-lucid pet downloaded via PPM]