Re: mailcap.win32
Thorsten Maerz <[email protected]> Fri, 21 Feb 2003 14:25:45 +0100
| Newsgroups | gmane.mail.sylpheed.claws.windows |
|---|---|
| Message-ID | <[email protected]> |
Hi Syafril, On Fri, 21 Feb 2003 16:17:26 +0700 Syafril Hermansyah <[email protected]> wrote: > Do I need to put the "" mark between program name ? > I tried here : > .tif g:\program\infanviewe\i_view32.exe "%s" The quotes are needed, if the -resulting- path contains spaces or tabs, e.g. "c:\program files" has to be quoted, otherwise windows tries to run a "c:\program.exe" or "c:\program.bat" with the parameter "files". The same applies for the parameters: The filename (%s) has to be quoted to be regarded as a single parameter. If you need to pass more parameters, it is -usually- the best to quote each of them (e.g. "c:\my files\testapp.exe" "/parm0" "%s"), but there may be applications that expect different quotings, so there is no general answer possible. > I didn't try with other extention yet (I use tif viewer a lot for daily > business). Some more ideas: * Your images are called .tiff, but your rule uses .tif --> try .tif* or .tif? instead --> also try .* * The user mailcap.win32 (in home) overrides settings from the global mailcap.win32 (in etc). Use only one to avoid confusion until testing is done. * I wrote a small test application that dumps all parameters to stdout, so they are visible in the console window (that is opened by the debug enabled version). Please try following line in your _one and only_ (see above) mailcap.win32: .* "c:\testapp.exe" "%s" It should dump sth like: --- testapp: "c:\testapp.exe" "d:\cvshome\home\.sylpheed\mimetmp\00000000.back98.bmp" params as seen by application (without <> and leading numbers): 0 "c:\testapp.exe" 1 "d:\cvshome\home\.sylpheed\mimetmp\00000000.back98.bmp" --- Once you have that output, you can try to move/rename it step by step to match the name and path of the previewer. Regards, -- Thorsten Maerz <[email protected]> Sylpheed-claws/Win32: http://claws-w32.sf.net
testapp.zip
(application/zip, 10.4 KB) - not displayed