File fritzing-fix-app-folder.patch of Package fritzing

Index: src/utils/folderutils.cpp
===================================================================
--- src/utils/folderutils.cpp.orig
+++ src/utils/folderutils.cpp
@@ -153,11 +153,14 @@ const QString FolderUtils::libraryPath()
 }
 
 const QString FolderUtils::applicationDirPath() {
-	if (m_appPath.isEmpty()) {
-		return QCoreApplication::applicationDirPath();
+	if (!m_appPath.isEmpty()) {
+		return m_appPath;
 	}
 
-	return m_appPath;
+	QDir dir("/usr/share/fritzing");
+	if (dir.exists()) return dir.path();
+
+	return QCoreApplication::applicationDirPath();
 }
 
 bool FolderUtils::setApplicationPath2(const QString & path) 
openSUSE Build Service is sponsored by