Re: create a file that opens a url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29-Dec-2004/09:30 -0500, Gentian Hila <genti.tech@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx%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/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux