]> git.pld-linux.org Git - packages/opera.git/blame - opera-wrapper.patch
- use upstream desktop file, add our changes
[packages/opera.git] / opera-wrapper.patch
CommitLineData
f782eebe
ER
1--- opera 2010-01-01 21:34:51.531475131 +0100
2+++ opera 2010-01-02 17:18:27.938275169 +0200
3@@ -3,7 +3,7 @@
4 # but execute it from the extracted package or current location.
5 export LC_ALL=C
6 # Location of the Opera binaries
7-OPERA_BINARYDIR=usr/lib/opera
8+OPERA_BINARYDIR=/usr/lib/opera
9
10 die () {
11 for arg
3b1fd282
AM
12@@ -37,15 +37,14 @@
13 [ -z "$toset" ] || die "Missing parameter for $arg"
14
15
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
6caa69b5
ER
23
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
ER
27 export OPERA_SCRIPT_PATH
28
f1851cae 29 OPERA_SYSTEM_UNAME=`uname -s`
3b1fd282 30@@ -56,10 +55,17 @@
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."
6caa69b5 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
6caa69b5 39+
f1851cae
AM
40+
41 # Opera enviroment
42 if [ -z "$OPERA_DIR" ]
43 then
3b1fd282
AM
44- OPERA_DIR="$PWD/usr/share/opera"
45+ OPERA_DIR="/usr/share/opera"
46 fi
47 export OPERA_DIR
48
49@@ -357,7 +363,7 @@
50
51 # Setting environment relative to current working directory
52 # Bundled Qt will be found here unless preloaded by the stance above
53-LD_LIBRARY_PATH="$PWD/usr/lib/opera${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
54+LD_LIBRARY_PATH="$OPERA_BINARYDIR/${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
55 export LD_LIBRARY_PATH
56
57 # Run Opera:
This page took 0.116626 seconds and 4 git commands to generate.