no way, it works from tclsh but fails within rivet (it seems xdg-mime assumes the environment variable to be set)

application/vnd.ms-powerpoint
WARNING: HOME is not set, using root: /
    while executing
"exec xdg-mime query filetype $binary_file"

 -- Massimo

On 15-05-2013 20:10, Damon Courtney wrote:
Don't know of a Tcl package, but you might try the xdg-mime utility
on most Linux / UNIX distros.


On May 15, 2013, at 12:29 PM, Massimo Manghi <[email protected]> wrote:

I'm distributing some Powerpoint files along with other binary (images) files. I wish to determine the correct mimetype and set the Content-Type headers accordingly. Tcllib's ::fileutils::mimetype doesn't know anything about MS Office documents and returns an emtpy string (not even a generic 'application/octet-stream'). Is there some wider mimetype library available for Tcl to prevent me from using the file extension? :-<<<

-- Massimo



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to