[packages/opera] improve personaldir check

glen glen at pld-linux.org
Fri May 24 20:02:50 CEST 2013


commit d7742fcea3b782abfcfcab20fa492bad05be9b30
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 24 21:01:27 2013 +0300

    improve personaldir check
    
    regardless of OPERA_PERSONALDIR env or -pd parameter,
    OperaAutoupdateChecker.sqlite is still created in ~/.opera.
    
    so check of operaprefs.ini file instead.

 opera.sh   | 2 +-
 opera.spec | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/opera.spec b/opera.spec
index 423b983..33c0c71 100644
--- a/opera.spec
+++ b/opera.spec
@@ -18,7 +18,7 @@ Summary(hu.UTF-8):	A világ leggyorsabb webböngészője
 Summary(pl.UTF-8):	Najszybsza przeglądarka WWW na świecie
 Name:		opera
 Version:	%{ver}
-Release:	4
+Release:	5
 Epoch:		2
 License:	Distributable
 Group:		X11/Applications/Networking
diff --git a/opera.sh b/opera.sh
index f967d14..3995959 100755
--- a/opera.sh
+++ b/opera.sh
@@ -10,7 +10,7 @@ export OPERA_DIR=/usr/share/opera
 export OPERA_PERSONALDIR="$HOME/.opera"
 
 # XDG path
-if [ ! -d "$OPERA_PERSONALDIR" ]; then
+if [ ! -d "$OPERA_PERSONALDIR/operaprefs.ini" ]; then
 	OPERA_PERSONALDIR="${XDG_CONFIG_HOME:-$HOME/.config}/opera"
 fi
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opera.git/commitdiff/d7742fcea3b782abfcfcab20fa492bad05be9b30



More information about the pld-cvs-commit mailing list