]> git.pld-linux.org Git - packages/opera.git/blob - opera-wrapper.patch
- use upstream desktop file, add our changes
[packages/opera.git] / opera-wrapper.patch
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
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
22  fi
23  
24  # Required for Session Management
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
27  export OPERA_SCRIPT_PATH
28  
29  OPERA_SYSTEM_UNAME=`uname -s`
30 @@ -56,10 +55,17 @@
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."
33  
34 +# set JAVA_HOME from jpackage-utils if available
35 +if [ -f /usr/share/java-utils/java-functions ]; then
36 +    . /usr/share/java-utils/java-functions
37 +    set_jvm
38 +fi
39 +
40 +
41  # Opera enviroment
42  if [ -z "$OPERA_DIR" ]
43  then
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.062567 seconds and 3 git commands to generate.