Mozzila Firefox als Standartbrowser / Script ausführbar machen

H

hempi

Mitglied
Hallo erstmal :D

Ich benutze Suse 9.0 Pro. Ich möchte Mozilla Firefox als Standardbrowser einrichten. Ich hab mich mal umgesehen und ein script gefunden mit dem ich es hinbekomm das Mozilla Firefox mehrmals öffnet ohne das der Profilmanager beim starten kommt und mir einen Strich durch die Rechnung macht :D
Einzigster hacken ist, das ich nicht kapier wie man ein Script ausführbar macht.

Ich habe eine neue Textdatei aufgemacht und hab das script reinkopiert. dann hab ich das script ganz normal gespeichert mit dem Namen firefoxtest.sh

Hier das Script:



#!/bin/sh
# author - David Patton
# seriously modified by - Carlos Urbieta Cabrera
# reworked by - Carlos Urbieta Cabrera again
# THIS SOFTWARE HAS THE GPL LICENSE, IF YOU USE THIS SOFTWARE, YOU ARE
# AGREEING TO ITS LICENSE?S TERMS, SO AT LEAST READ IT! 8D
# http://www.gnu.org/licenses/licenses.html#TOCGPL
#***
# Configurarion starts here

# Where is phoenix?
PHOENIX=/root/firefox/firefox

# Default URL when not set at command line?
DEFAULT=""

# Configurarion stops here
#***
URL="$@"
if [ "$URL" = "" ]; then
URL="$DEFAULT"
fi

$PHOENIX -remote "ping()"
# $? = false if running, true if not
if [ $? = 0 ] ; then
# 'new-tab' also exists, but it
# will not bring the browser
# ontop, so its not that fun.
# People may not realize that
# there is a new tab on their
# current browser 8) -Carlos
$PHOENIX -remote openURL"($URL,new-window)"
else
$PHOENIX $URL
fi

exit

#***
#Changelog:
#
# 2003/02/20
# * Major upgrade, now using a much simpler and cleaner method
# but only works on 1+ versions of mozilla (not sure) where
# ping() is supported.
# Now it has the option to set up a default URL and overides
# it if another URL is declared when invoking the command 8)
# This last upgrade was made possible by tips from Jan Wilson
# at the ltsp mailing list 8)
#
#
# 2003/01/24
# * Davids script used a simple ps -e without checking for users, so
# his was monouser, this new version is multiuser, propper for
# the linux terminal server project (hey guys!) 8) -Carlos
#
# 2003/01/22
# Yes this script is big enough for a change log! 8) -Carlos
#
#***
#TODO
#
# Knock yourself out, send your changes back to me, you agreed to it
# remember? 8)
#
#***

Also das Script funktioniert einwandfrei wenn ich es aus dem Terminal heraus aufrufe. ich möcht aber einfach nur draufklicken und dann soll es sich öffnen.

Thx für eure Hilfe
 
du musst das ausführen recht geben zb durch
chmod 100 scriptname
 
ich finde die zahlen bedeutend einfacher und auch verständlicher :)
 
jain . wie mans nimm und als erstes gelernt hat

ein chinese spricht halt auch lieber chinesisch als englisch obwohl englisch einfacher ist , wobei die zahlen schon recht praktisch sind. kloar .

gschmacksach hat seller Aff gsagt als er in die Schmierseif biss :tongue:
 
Danke funktioniert jetzt bestens :D

Ausser das ich noch Probleme habe Mozilla Firefox als Standardbrowser einzubinden. Was muss ich denn da genau machen. Ich möchte das sich wenn ich z.b. auf einen link aus einer E-mail klicke immer Mozilla lädt und nicht Konqueror und wenn ich die Tasten Kombi Alt + F2 drücke soll das script von oben geladen werden bzw. es soll ein Mozilla Fenster aufgehen wenn ich eine Internetadresse eingebe.
 
also das mit dem aufruf das liegt am programm und dass mit der tastenkompienation liegt am window manager.
 
toll aber was ich jetzt umstellen muss das weisst du nicht zufällig ?(
 
du solltest zumindest sagen welchen wm du nutzt aber am besten ein neuen thread aufmachen denn das wäre hier unangebracht
 
hmm was ist das denn?

Brauch hilfe und keine Eigenwerbung :(
 

Ähnliche Themen

Nginx als Reverse Proxy für Nextcloud und Emby

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Email via script via Exchange Server (SASL)

Verständnisfrage zu RegExps

Problem bei apt-get upgrade (Kali 2.0)

Zurück
Oben