2003-04-20 06:08:54 +02:00
|
|
|
--- src/galeon.in.orig Thu Apr 3 15:14:49 2003
|
|
|
|
+++ src/galeon.in Sat Apr 19 23:38:10 2003
|
2001-12-28 10:34:18 +01:00
|
|
|
@@ -4,18 +4,14 @@
|
2000-08-01 11:05:58 +02:00
|
|
|
|
|
|
|
if test -n "$MOZILLA_FIVE_HOME"; then
|
2000-10-27 10:38:04 +02:00
|
|
|
MOZILLA_HOME=$MOZILLA_FIVE_HOME
|
2001-12-28 10:34:18 +01:00
|
|
|
-elif [ -f @MOZILLA_HOME@/chrome/comm.jar ]; then
|
2001-05-22 14:08:01 +02:00
|
|
|
+elif [ -f @MOZILLA_HOME@/libgtkembedmoz.so ]; then
|
|
|
|
MOZILLA_HOME=@MOZILLA_HOME@
|
2001-12-28 10:34:18 +01:00
|
|
|
-elif [ -f /usr/local/mozilla/chrome/comm.jar ]; then
|
2000-08-01 11:05:58 +02:00
|
|
|
- MOZILLA_HOME=/usr/local/mozilla
|
2001-12-28 10:34:18 +01:00
|
|
|
-elif [ -f /usr/lib/mozilla/chrome/comm.jar ]; then
|
2000-08-01 11:05:58 +02:00
|
|
|
- MOZILLA_HOME=/usr/lib/mozilla
|
2001-12-28 10:34:18 +01:00
|
|
|
-elif [ -f /opt/mozilla/chrome/comm.jar ]; then
|
2001-01-29 16:11:00 +01:00
|
|
|
- MOZILLA_HOME=/opt/mozilla
|
2001-12-28 10:34:18 +01:00
|
|
|
-elif [ -f /usr/lib/mozilla-0.9.7/chrome/comm.jar ]; then
|
2001-11-13 13:28:37 +01:00
|
|
|
- MOZILLA_HOME=/usr/lib/mozilla-0.9.7/
|
2001-12-28 10:34:18 +01:00
|
|
|
-elif [ -f /opt/gnome/lib/mozilla/chrome/comm.jar ]; then
|
2001-07-05 09:33:46 +02:00
|
|
|
- MOZILLA_HOME=/opt/gnome/lib/mozilla/
|
2001-01-29 16:11:00 +01:00
|
|
|
+elif [ -f %%LOCALBASE%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
|
2000-08-17 11:49:02 +02:00
|
|
|
+ MOZILLA_HOME=%%LOCALBASE%%/lib/%%MOZILLA%%
|
2001-01-29 16:11:00 +01:00
|
|
|
+elif [ -f %%X11BASE%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
|
2000-08-17 11:49:02 +02:00
|
|
|
+ MOZILLA_HOME=%%X11BASE%%/lib/%%MOZILLA%%
|
2001-01-29 16:11:00 +01:00
|
|
|
+elif [ -f %%PREFIX%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
|
|
|
|
+ MOZILLA_HOME=%%PREFIX%%/lib/%%MOZILLA%%
|
|
|
|
else
|
2000-08-01 11:05:58 +02:00
|
|
|
echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory"
|
2001-01-29 16:11:00 +01:00
|
|
|
exit
|
2003-04-20 06:08:54 +02:00
|
|
|
@@ -27,11 +23,12 @@
|
2001-07-05 09:33:46 +02:00
|
|
|
MOZILLA_FIVE_HOME=$MOZILLA_HOME
|
|
|
|
export MOZILLA_FIVE_HOME
|
|
|
|
|
|
|
|
-# for some reason this lets Galeon start properly on Red Hat 7.1 systems
|
|
|
|
-if [ -f /etc/redhat-release ]; then
|
|
|
|
- if [ "`cat /etc/redhat-release`" = "Red Hat Linux release 7.1 (Seawolf)" ]; then
|
|
|
|
- export LD_ASSUME_KERNEL=2.2.5
|
|
|
|
- fi
|
2002-10-22 05:44:18 +02:00
|
|
|
+MOZ_PLUGIN_PATH=%%PREFIX%%/lib/browser_plugins
|
|
|
|
+export MOZ_PLUGIN_PATH
|
2003-04-20 06:08:54 +02:00
|
|
|
+
|
|
|
|
+if [ -f %%FLASHPLAYER%% ]; then
|
|
|
|
+ LD_PRELOAD=%%FLASHPLAYER%%
|
|
|
|
+ export LD_PRELOAD
|
2001-05-03 13:59:33 +02:00
|
|
|
fi
|
2001-05-22 14:08:01 +02:00
|
|
|
|
2003-04-20 06:08:54 +02:00
|
|
|
-exec "$dist_bin/galeon-bin" "$@"
|
|
|
|
+exec %%PREFIX%%/bin/galeon-bin "$@"
|