create a file that opens a url

Gentian Hila at
Wed Dec 29 15:00:54 UTC 2004

I have it 755 and still just opens it instead of executing. By the way
the file is on the /root/Desktop.

I tried to create a link to the file but it actually is a php file on
the same machine, so it doesn't open automatically.

On Wed, 29 Dec 2004 09:44:22 -0500, Anthony E. Greene
<tony at> wrote:
> On 29-Dec-2004/09:30 -0500, Gentian Hila < at> wrote:
> >I did that but now it opens immediately with my text editor gedit and
> >I do not want to change that as the default editor for script files.
> >
> >The file now reads
> >#!/bin/bash
> >firefox
> Did you make the file executable?
>  chmod 755 urlfile
> Nautilus will ask whether to open or run the file.
> A better way to do this is to create a .desktop file. For a URL, just go
> to the target page in your browser and drag the icon at the left end of
> the address bar to your desktop.
> You can drag the resulting .desktop file into gEdit to see what it
> contains.
> Tony
> --
> Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Ctony at>
> AOL/Yahoo Messenger: TonyG05    HomePage: <>
> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
> Linux. The choice of a GNU generation <>

More information about the users mailing list