Hi, jasper.Jasper wrote:Hi musher0,
It would take you only seconds to try it and see how and if it works for
you by displaying a single list of apps ending with the "chooser".
I'm happy and pleased.
My regards and thanks
Yeah, it's ok, but it's still a syntax error to have the beginning menu
command and not the end command. Error notices may pile up in the
/tmp/xerrs.log error log.
You may also want to try this, which provides a straight 1-column list
with no header.
Code: Select all
#!/bin/sh
# /usr/local/bin/progs-default.sh
# But : créer un aemenu des logiciels par défaut
# dans PuppyLinux pour le gest. de fen. aewm, echinus ou autre.
# Dépendance : aemenu
# (c) musher0, 30 mai 2015.(English only version with small changes for Jasper)
####
cd /usr/local/bin/
ls -Algoh --file-type defau* | awk '$1 !~ /lrw/ && $7 !~ /.cdr/ && $7 !~ /.bak/ && $7 !~ /han/ { print $7 }' > liste-progs
# echo "menu "Default apps""
> progs-default
for i in `cat liste-progs`;do
echo "cmd ${i#*t} $i" >> progs-default
done
echo "cmd "> chooser" /usr/bin/defaults-chooser" >> progs-default
aemenu -rc /usr/local/bin/progs-default
rm -f liste-progs
BFN.
musher0