On 00:13 2010-06-01 -0700, andrew mcintosh wrote: > Is there some way to set the default save location of a file based on the > mime type? > > For example, I'd like to save all my .torrent files automatically to > ~/rtorrent/tracker. >
What I am doing, and what is probably overcomplicated, but should work
for you too. First setting external handler for that mime in
.conkerorrc:
external_content_handlers.set("application/x-bittorrent", "torrent-launcher");
content_handlers.set("application/x-bittorrent",
content_handler_open_default_viewer);
Whereas torrent-launcher is an executable script in PATH which does
what it supposed to do on a given host. For simple case as yours it
would probably suffice to put
#!/bin/sh
mv "$1" ~/rtorrent/tracker
in it.
--
Pozdrawiam,
Łukasz P. Michalik
pgpIk8rjwqid9.pgp
Description: PGP signature
_______________________________________________ Conkeror mailing list [email protected] https://www.mozdev.org/mailman/listinfo/conkeror
