From owner-freebsd-questions@FreeBSD.ORG Mon Jul 16 23:50:27 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FE1016A400 for ; Mon, 16 Jul 2007 23:50:27 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 0A26413C4BC for ; Mon, 16 Jul 2007 23:50:26 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 26367 invoked from network); 16 Jul 2007 18:50:27 -0500 Received: from 203-158-59-146.dyn.iinet.net.au (HELO localhost) (203.158.59.146) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 16 Jul 2007 18:50:26 -0500 Date: Tue, 17 Jul 2007 09:50:23 +1000 From: Norberto Meijome To: Schiz0 Message-ID: <20070717095023.7588ceae@localhost> In-Reply-To: <8d23ec860707161417n744e52d9mcef58f9807ab695d@mail.gmail.com> References: <539c60b90707161250k6aadaed4sff953baec39403da@mail.gmail.com> <8d23ec860707161417n744e52d9mcef58f9807ab695d@mail.gmail.com> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Steve Franks , User Questions Subject: Re: make a symlink to a webpage? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 23:50:27 -0000 On Mon, 16 Jul 2007 17:17:53 -0400 Schiz0 wrote: > On 7/16/07, Steve Franks wrote: > > I know this is browser-specific, so let's just say firefox - how do I > > make a link to a page that I can execute directly? This is not the > > type of thing that's easy to google for. I tried copying some of the > > ".url" links from my win32 box and opening them with firefox, but that > > was just wishful thinking... > > > > Thanks, > > Steve > > I'm not sure if you can, to be honest. (Although I may be wrong). > Windows lets you do this because the .url extension is associated with > your browser through the windows registry that's correct - *url is loaded by iexplore "%1" , if i remember correctly. The .url file is a simple .ini file with a different extension so it can be mapped to a special application. >. Hardly any other operating > systems have a registry type thing... > (I don't even think mac has one). you don't need a 'system wide' registry... everything in current Microsoft OS is so integrated with the shell ('win.com' in the old win16 days) that it feels so seem-less. Under a unix graphic environment like X, all you have to do is map the extention to an application (more on this below) in your file manager of choice. Rox lets you such thing, so does Thunar under XFCE,and I am 99.9% sure that nautilus and kde's file browser would allow it too. OSX has it too (can't test MacOS, but i'm sure you can click on an icon an have an application open it - that is ALL there is to it) Hardly rocket science or ground breaking stuff by MS.. If i understand it correctly, gconf exists to generate a registry type system. wine also has a u*x-based registry equivalent. > What you could do is make a shell script that executes your browser > with a command line option with the URL. Check the docs for your > browser, almost every browser lets you do this. Like "firefox > -url=http://asdf.com" or something. exactly. actually, i had this old script from back when to extract URLs from .url into a csv file : -- #!/usr/bin/bash export IFS=";" find -name "*.url" -printf %p\; > myfavs.txt for i in `cat myfavs.txt` ; do echo -n `basename $i .url` >>myfavs.csv echo \|`grep ^URL= $i | cut -d= -f2` >> myfavs.csv; done --- it was run in win32 under cygwin. it'd be trivial to change it so that your file manager passes the .url filename to the script, the script greps the URL from it and calls firefox with -url as Schiz says. B _________________________ {Beto|Norberto|Numard} Meijome Mind over matter: if you don't mind, it doesn't matter I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.