Dash:
[t2-trunk.git] / package / office / moneypenny / datadir.patch
blob0a1b3141b017becab6bb810805cea44fa0476fa3
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../moneypenny/datadir.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./src/globals.cpp 2006-02-04 10:40:46.000000000 +0100
18 +++ ./src/globals.cpp 2006-03-16 11:41:55.000000000 +0100
19 @@ -39,8 +40,8 @@
20 mp_dir = dir.path() +"/";
21 if(QFile(mp_dir + "moneypenny.pro").exists())
22 qDebug("Running from development directory tree.");
23 - else
24 - if(mp_dir.find("usr")>=1){ // may be /usr or /usr/local or /UNIONFS/usr on a KNOPPIX CD
25 + else if(dir.absPath().startsWith("/usr") || dir.absPath().startsWith("/opt")){
26 + // may be /usr or /usr/local or /UNIONFS/usr on a KNOPPIX CD
27 mp_dir = mp_dir + "share/moneypenny/";
29 QString fileName = mp_dir + MONEYPENNY_DATA_DIR + "/" + MONEYPENNY_HBCI_BANKDATA_FILE;