blob: 2f0e0e8d4f641426d4e9463b3d0155dee7ae781d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
--- src/galeon.in.orig Thu Apr 3 15:08:00 2003
+++ src/galeon.in Sat Apr 19 23:10:10 2003
@@ -4,18 +4,14 @@
if test -n "$MOZILLA_FIVE_HOME"; then
MOZILLA_HOME=$MOZILLA_FIVE_HOME
-elif [ -f @MOZILLA_HOME@/chrome/comm.jar ]; then
+elif [ -f @MOZILLA_HOME@/libgtkembedmoz.so ]; then
MOZILLA_HOME=@MOZILLA_HOME@
-elif [ -f /usr/local/mozilla/chrome/comm.jar ]; then
- MOZILLA_HOME=/usr/local/mozilla
-elif [ -f /usr/lib/mozilla/chrome/comm.jar ]; then
- MOZILLA_HOME=/usr/lib/mozilla
-elif [ -f /opt/mozilla/chrome/comm.jar ]; then
- MOZILLA_HOME=/opt/mozilla
-elif [ -f /usr/lib/mozilla-0.9.7/chrome/comm.jar ]; then
- MOZILLA_HOME=/usr/lib/mozilla-0.9.7/
-elif [ -f /opt/gnome/lib/mozilla/chrome/comm.jar ]; then
- MOZILLA_HOME=/opt/gnome/lib/mozilla/
+elif [ -f %%LOCALBASE%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+ MOZILLA_HOME=%%LOCALBASE%%/lib/%%MOZILLA%%
+elif [ -f %%X11BASE%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+ MOZILLA_HOME=%%X11BASE%%/lib/%%MOZILLA%%
+elif [ -f %%PREFIX%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+ MOZILLA_HOME=%%PREFIX%%/lib/%%MOZILLA%%
else
echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory"
exit
@@ -27,11 +23,12 @@
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
+MOZ_PLUGIN_PATH=%%PREFIX%%/lib/browser_plugins
+export MOZ_PLUGIN_PATH
+
+if [ -f %%FLASHPLAYER%% ]; then
+ LD_PRELOAD=%%FLASHPLAYER%%
+ export LD_PRELOAD
fi
-exec "$dist_bin/galeon-bin" "$@"
+exec "%%PREFIX%%/bin/galeon-bin" "$@"
|