On 27 Feb 2004 11:33:18 +0100, calmar wrote: > > I'm wondering if there is any interest in a little patch at the > fvwm-menu-directory. > > An additional command line what should define with what kind of a > program files with specific endings should get opened. > > the additional command line option would look like this: > > exec-gen="xv=jpg|jpeg,mplayer=mov|mpg|mpeg,xmms=mp3" > > that would mean, xv should open all endings: jpg, jpeg, > mplayer should open endings: mov, mpg, mpeg and > xmms should be used to open mp3 files. > > for personal use this would be already enough for me actually, > but when this would be interesting to enhance ( icons ), i could > do it as well. > > Actually a quick hack with special markings to see where i hacked > around. I'm not really a perl programmer, but I hope it's all ok anyway.
I didn't check the patch yet, but I probably prefer this syntax: --exec-mime="xv -nolimits; jpg|jpeg, mplayer -fs %n; mov|mpg|mpeg" Or better yet instead of your option, add this one: --use-mailcap that just parses and uses existing ~/.mailcap and ~/.mime.types. P.S. I would like you to keep the strict indentation (one TAB only, never spaces) in the code, otherwise I will need to change it manually. Regards, Mikhael. -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]