Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 4322ced60be82097931a225807836388 > files > 2

mihphoto-1.0.8-5.mga5.src.rpm

--- MihPhoto/dev/MihPhoto.pro.orig	2012-09-25 18:44:39.551000075 +0200
+++ MihPhoto/dev/MihPhoto.pro	2012-09-25 18:48:43.909000075 +0200
@@ -4,6 +4,8 @@
 DEFINES += VERSION=1.08
 VERSION = 1.0.8
 
+DEFINES += DATADIR=\\\"@DATADIR@\\\"
+
 TARGET = MihPhoto
 DESTDIR = ../bin
 HEADERS += MainWindow.h \
--- MihPhoto/dev/main.cpp.orig	2012-09-25 18:39:46.231000075 +0200
+++ MihPhoto/dev/main.cpp	2012-09-25 18:49:50.904000075 +0200
@@ -51,8 +51,12 @@
 	#if defined(Q_OS_SYMBIAN)
 		g_config.install_dir = ":";
 	#else
-		g_config.install_dir = app.applicationDirPath()
-			+ QDir::separator() + "..";
+		#ifdef Q_OS_LINUX
+			g_config.install_dir = DATADIR;
+		#else
+			g_config.install_dir = app.applicationDirPath()
+				+ QDir::separator() + "..";
+		#endif
 	#endif
 
 	QStringList args = app.arguments();