Already an update. This one is good for monocores.
The only change is that the full path of the opera history file is searched
only the first time, and then saved to a temp file. The next times, the
script looks for this temp file instead of doing a full find procedure. It
saves a couple of seconds every time, in other words the menu shows
up immediately after the initial run hic-cup.
Notes concerning the pic.
* If you've cleaned your opera history, this is how the menu will look.
And that's fine.
* If you create or edit a "new" pic with mtpaint (if mtpaint thinks it's new),
the name of the pic will go in Miss X. Belle's log. So here you have two
mentions of a defaultmediaplayer picture, one from Miss Belle's log, the
other one from mtpaint's history. And that's fine.
General note :
I still need translators for those strings. Anyone hearing the "calling"?
Thanks in advance.
BFN.
musher0
~~~~~~~~~~~~~
Code: Select all
#!/bin/sh
# ~/my-applications/ae/MRUD-lst.sh
#
# Réf./Ref. : openbox.org/wiki/Openbox:Pipemenus:recentfilesxbel
# Merci au groupe openbox et à stu91 du forum Puppy pour le tuyau.
#
# Adapté(ed) par / by musher0 pour / for aemenu, fin /end of oct. - début /beg. of nov. 2012
# Rév. : 15 oct. 2013, 16 nov. 2013 (MRUD-lst.sh, v. 0.3)
# Rév. : 11 juin / June 2014 (v.0.4a; this version)
#
# Dé(e)penda(e)nc(i)es : aemenu, replaceit & ~/.local/share/recently-used.xbel or /ou ~/.recently-used.xbel
#
# Other / Autres : opera & mtpaint
# Will work without those two, but warnings will appear. /
# Va fonctionner sans, mais des avertissements s'afficheront.
####
# Préparation pour aemenu
export AEM="/root/my-applications/ae"
[ ! -d $AEM ] && mkdir $AEM
# pour .recently-used.xbel
[ ! -f /root/.recently-used.xbel ] && ln -s /root/.local/share/recently-used.xbel /root/.recently-used.xbel
# Langues (pour le titre)
case ${LANG%_*} in
ca) DOCREC="Documents recents"
EFF="Erase this list"
EDT="Edit this menu";;
en) DOCREC="Recent Documents"
EFF="Erase this list"
EDT="Edit this menu";;
es) DOCREC="Documentos recientes"
EFF="Erase this list"
EDT="Edit this menu";;
fi) DOCREC="Viimeisimmät tiedostot"
EFF="Erase this list"
EDT="Edit this menu";;
fr) DOCREC="Documents récents"
EFF="Effacer la liste"
EDT="Éditer ce menu";;
# gr) DOCREC="Π