I am experimenting a strange issue with the following function (derived from Taviso’s configuration) in fvwm-crystal:
[code]DestroyFunc FuncFvwmMenuPicDirectory
AddToFunc FuncFvwmMenuPicDirectory
- I PipeRead ‘case “$0” in
“/mnt/usb/dom/Pictures”) myexec=“comix”;;
“/home/dom/Pictures”) myexec=“comix”;;
esac;
test -f “$0”/.icontitle.png && mytitle="$0"/.icontitle.png;
test -f “$0”/.media.png && mypng="$0"/.media.png;
fvwm-menu-directory --func-name “FuncFvwmMenuPicDirectory” --icon-title “${mytitle:-22x22/categories/directory.png}” --icon-file “${mypng:-22x22/categories/Graphics.png}”
–icon-dir 22x22/categories/directory.png --dir “$0” --links --exec-title “^${myexec} ‘$0’”
–exec-file “^${myexec}”’[/code]
With some directories, all is working fine, but with other not. As examples, from “/mnt/usb/dom/Pictures/Art/Abrupt Clio Team - Ressources Histoire”, the menu will launch the viewer both from the title and from a file.
From “/mnt/usb/dom/Pictures/Art/Abrupt Clio Team - Ressources Histoire/1886-1986 Dessin Presse France”, I get the menu but fvwm launch a term from the title and nano from a filename, with the file open in nano.
From “/mnt/usb/dom/Pictures/Art/Abrupt Clio Team - Ressources Histoire/1896-1960 Affiches cinéma français” or “/mnt/usb/dom/Pictures/Art/Abrupt Clio Team - Ressources Histoire/1901-1906 France”, I don’t get the menu but get the following errors again and again:
sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file