[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: PATCH - winebrowser
From: Chris Morgan <cmorgan () alum ! wpi ! edu>
Date: 2003-12-30 23:31:04
Message-ID: 200312301831.04849.cmorgan () alum ! wpi ! edu
[Download RAW message or body]
Has Rein's fix for mozilla and Ivan's additional browsers. Tried to clean the
script up a little bit, could probably still use some work but I'm no script
guru.
Chris
* tools/winebrowser, tools/wineinstall, tools/Makefile.in, winedefault.reg
Chris Morgan <cmorgan@alum.wpi.edu>
Add HKEY_LOCAL_MACHINE\software\classes\http\shell\open\command key and
value. Winebrowser script. Makefile changes to install/remove script.
Wineinstall should create a simlink from windows/winebrowser.exe to the
location of winebrowser on the machine.
["winebrowse2.patch" (text/x-diff)]
Index: tools/wineinstall
===================================================================
RCS file: /home/wine/wine/tools/wineinstall,v
retrieving revision 1.62
diff -u -r1.62 wineinstall
--- tools/wineinstall 26 Nov 2003 03:55:01 -0000 1.62
+++ tools/wineinstall 28 Dec 2003 22:25:32 -0000
@@ -145,6 +145,7 @@
link_app uninstaller "$CROOT/windows/uninstall.exe"
link_app winhelp "$CROOT/windows/winhelp.exe"
link_app winhelp "$CROOT/windows/winhlp32.exe"
+ ln -f -s `which winebrowser` "$CROOT/windows/winebrowser.exe"
}
# startup...
Index: tools/Makefile.in
===================================================================
RCS file: /home/wine/wine/tools/Makefile.in,v
retrieving revision 1.37
diff -u -r1.37 Makefile.in
--- tools/Makefile.in 20 Nov 2003 22:02:15 -0000 1.37
+++ tools/Makefile.in 28 Dec 2003 22:25:32 -0000
@@ -43,9 +43,10 @@
install::
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
$(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(bindir)/winemaker
+ $(INSTALL_SCRIPT) $(SRCDIR)/winebrowser $(bindir)/winebrowser
$(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
uninstall::
- $(RM) $(bindir)/winemaker $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
+ $(RM) $(bindir)/winemaker $(bindir)/winebrowser $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
### Dependencies:
Index: winedefault.reg
===================================================================
RCS file: /home/wine/wine/winedefault.reg,v
retrieving revision 1.83
diff -u -r1.83 winedefault.reg
--- winedefault.reg 8 Dec 2003 22:19:12 -0000 1.83
+++ winedefault.reg 28 Dec 2003 22:25:43 -0000
@@ -4620,3 +4620,7 @@
[HKEY_CLASSES_ROOT\CLSID\{E436EBB3-524F-11CE-9F53-0020AF0BA770}\InprocServer32]
@="quartz.dll"
"ThreadingModel"="Both"
+
+# Map requests to open "http" entries to winebroswer
+[HKEY_LOCAL_MACHINE\software\classes\http\shell\open\command]
+@="winebrowser %1"
["winebrowser" (application/x-shellscript)]
#!/bin/sh
# Script to provide a default browser for ShellExecuting a URL
# Chris Morgan <cmorgan@alum.wpi.edu>
# 2003/12/28
# make mozilla not think some "X:\" is the temp directory, thanks to Rein Klazes
unset TMP TEMP
if [ -n "`which mozilla`" ]
then
mozilla $*
elif [ -n "`which netscape`" ]
then
netscape $*
elif [ -n "`which galeon`" ]
then
galeon $*
elif [ -n "`which konqueror`" ]
then
konqueror $*
elif [ -n "`which mozilla-firebird`" ]
then
mozilla-firebird $*
elif [ -n "`which opera`" ]
then
opera $*
else
# return failure
exit 1
fi
# return success
exit 0
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic