H
hempi
Mitglied
Hallo erstmal 
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
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:
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

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

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-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
# This last upgrade was made possible by tips from Jan Wilson
# at the ltsp mailing list
#
#
# 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!)-Carlos
#
# 2003/01/22
# Yes this script is big enough for a change log!-Carlos
#
#***
#TODO
#
# Knock yourself out, send your changes back to me, you agreed to it
# remember?
#
#***
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