create a file that opens a url

Alexander Dalloz ad+lists at uni-x.org
Wed Dec 29 14:18:04 UTC 2004


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 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041229/4c524a01/attachment-0001.sig>


More information about the fedora-list mailing list