From: Ken H. <ke...@ha...> - 2004-10-12 05:40:30
|
Hi, In some desktop environments it is allowed to drap-drop from a browser or other client and save the uri instead of the contents. Attached is a patch to Fetch-0.0.4 that does this. What happens is, instead of automatically starting the download as Fetch normally does, it waits for a button to be clicked. Two additional buttons, 'Save' and 'Save as URI' were added for this. 'Save' does the original behavior. The URI file is just a text file of extension '.uri' that contains one line which is the actual uri text. By default ROX has no uri handler. A very simple handler is: #!/bin/bash mozilla `cat "$1"` I actually use firefox instead of mozilla, but that's just a matter of choice. A better handler for .uri files would probably choose what to do based on the type (http, ftp, etc). The patch is pretty quick and dirty and probably fails in some cases. To make the filename I basically just replaced the '/' with ':'. -- Ken Hayber (ke...@ha...) Huntington Beach, CA |