File common-ressource_path.patch of Package Reveal

Index: src/Reveal/revealMain.cpp
===================================================================
--- src/Reveal/revealMain.cpp.orig
+++ src/Reveal/revealMain.cpp
@@ -27,6 +27,9 @@
 #include "../_generalTools/preferenceManager.h"
 #include "../_generalTools/translationManager.h"
 
+#ifndef RESOURCE_PATH    
+#define RESOURCE_PATH "/usr/share/Reveal"
+#endif    
 //==============================================
 int main( int argc, char **argv)
 {
@@ -43,8 +46,11 @@ int main( int argc, char **argv)
   TranslationManager* translationManager = new TranslationManager(&preferenceManager);
 
   //initialize FileDirTools with argv1
+#ifdef Q_OS_LINUX
+  FileDirTools::initUsingArgv1( RESOURCE_PATH );
+#else
   FileDirTools::initUsingArgv1( argc > 1 ? QString(argv[1]) : "");
-  
+#endif
   //create application window
   Reveal* revealWindow = new Reveal(&preferenceManager);
 
--- src/_generalTools/fileDirTools.cpp~	2009-03-30 23:26:42.000000000 +0200
+++ src/_generalTools/fileDirTools.cpp	2009-03-30 23:26:42.000000000 +0200
@@ -71,7 +71,7 @@
     //copy of Album Shaper, use application dir path directly
     else 
     {
-      return QString("%1/resources/%2/installedResources/").arg(argv1).arg(moduleName);
+      return QString("%1/").arg(argv1);
     }
   }
   //if the binary is run directly assume we're in the same directory