]> git.pld-linux.org Git - packages/opera.git/blame - opera-wrapper.patch
- updated to 10.11 (stable)
[packages/opera.git] / opera-wrapper.patch
CommitLineData
66f1ccb5
KK
1--- opera-10.11-4791.gcc4-qt4.i386/opera.orig 2010-06-21 16:11:12.000000000 +0200
2+++ opera-10.11-4791.gcc4-qt4.i386/opera 2010-06-23 23:16:37.000000000 +0200
f782eebe
ER
3@@ -3,7 +3,7 @@
4 # but execute it from the extracted package or current location.
66f1ccb5 5
f782eebe
ER
6 # Location of the Opera binaries
7-OPERA_BINARYDIR=usr/lib/opera
8+OPERA_BINARYDIR=/usr/lib/opera
66f1ccb5 9
f782eebe
ER
10 die () {
11 for arg
3b1fd282
AM
12@@ -37,15 +37,14 @@
13 [ -z "$toset" ] || die "Missing parameter for $arg"
66f1ccb5
KK
14
15
3b1fd282
AM
16-[ "$PWD" ] || PWD=`/bin/pwd`
17 if [ "$_PERSONALDIR_FROM_CMDLINE_" = NO ]
18 then
19- OPERA_PERSONALDIR="$PWD/profile"
20+ OPERA_PERSONALDIR="$HOME/.opera"
21 export OPERA_PERSONALDIR
f1851cae 22 fi
66f1ccb5 23
6caa69b5 24 # Required for Session Management
f1851cae
AM
25-case $0 in /*) OPERA_SCRIPT_PATH=$0;; *) OPERA_SCRIPT_PATH=`/bin/pwd`/$0;; esac
26+case $0 in /*) OPERA_SCRIPT_PATH=$0;; *) OPERA_SCRIPT_PATH=/usr/bin/$0;; esac
6caa69b5 27 export OPERA_SCRIPT_PATH
66f1ccb5 28
f1851cae 29 OPERA_SYSTEM_UNAME=`uname -s`
66f1ccb5 30@@ -56,10 +55,16 @@
f1851cae
AM
31 [ -f "$OPERA_BINARYDIR/opera" ] || die "The Opera binary is not located at \"$OPERA_BINARYDIR/opera\"." "Please modify the wrapper script at \"$0\"."
32 [ -x "$OPERA_BINARYDIR/opera" ] || die "You do not have execute rights on \"$OPERA_BINARYDIR/opera\", please ask the sysadmin to chmod +x it."
66f1ccb5 33
4a1d1bd2
ER
34+# set JAVA_HOME from jpackage-utils if available
35+if [ -f /usr/share/java-utils/java-functions ]; then
f1851cae
AM
36+ . /usr/share/java-utils/java-functions
37+ set_jvm
4a1d1bd2 38+fi
f1851cae
AM
39+
40 # Opera enviroment
41 if [ -z "$OPERA_DIR" ]
42 then
3b1fd282
AM
43- OPERA_DIR="$PWD/usr/share/opera"
44+ OPERA_DIR="/usr/share/opera"
45 fi
46 export OPERA_DIR
66f1ccb5
KK
47
48@@ -357,7 +362,7 @@
49
3b1fd282
AM
50 # Setting environment relative to current working directory
51 # Bundled Qt will be found here unless preloaded by the stance above
52-LD_LIBRARY_PATH="$PWD/usr/lib/opera${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
53+LD_LIBRARY_PATH="$OPERA_BINARYDIR/${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
54 export LD_LIBRARY_PATH
66f1ccb5 55
3b1fd282 56 # Run Opera:
This page took 0.093751 seconds and 4 git commands to generate.