create a file that opens a url

Gentian Hila genti.tech at gmail.com
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 greene-family.org> wrote:
> On 29-Dec-2004/09:30 -0500, Gentian Hila <genti.tech at gmail.com> 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 http://www.something.com
> 
> 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 greene-family.org%3E>
> AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.greene-family.org/tony/>
> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
> Linux. The choice of a GNU generation <http://www.linux.org/>
> 
>




More information about the fedora-list mailing list