Re: create a file that opens a url

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

 



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



On Wed, 29 Dec 2004 15:18:04 +0100, Alexander Dalloz <ad+lists@xxxxxxxxx> wrote:
> Am Mi, den 29.12.2004 schrieb Gentian Hila um 15:09:
> 
> > I created a text file that opens a url like this with gedit:
> >
> > firefox http://www.something.com
> >
> > Changed the permissions to execute but when I double click I see a
> > window that asks me if I want to run in terminal or cancel or run the
> > program.
> >
> > I want to make it open that website immediately as I double click the file.
> 
> Missing the shebang line. As first line in the script file add
> 
> #!/bin/bash
> 
> or whatever interpreter you prefer.
> 
> Alexander
> 
> --
> Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
> legal statement: http://www.uni-x.org/legal.html
> Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp
> Serendipity 15:16:24 up 6 days, 17:00, load average: 0.22, 0.41, 0.43
> 
> 
>


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

  Powered by Linux