playing video files with gmplayer by default & guessing subtitle file
I am using debian 6.0.0
The video files are played by default in totem.
I like gmplayer.
Also I want to make script for intelligently guessing as follows
Get all the names of file in <folder-containing-video> . See which of them (among *.srt.*.sub.*.ssa) has maximum number of characters matching with video name. That file will be parameter for sub option .
I saw a desktop entry for gvim which is like
gvim -f %F -f means foreground
I can try
gmplayer -vo xv -sub what-should-I-write-here %F