fritzing/fritzing-fix-app-folder.patch
andrea florio 4e16f39cae Accepting request 77426 from home:Heinervdm:branches:Education
- Fix fritzing-fix-app-folder.patch
- Apply patch to debian packages too
- put fritzing icon in correct directory for debian packages

OBS-URL: https://build.opensuse.org/request/show/77426
OBS-URL: https://build.opensuse.org/package/show/Education/fritzing?expand=0&rev=4
2011-07-29 14:42:45 +00:00

22 lines
758 B
Diff

diff -Nurd fritzing.2011.07.11.source.orig//src/utils/folderutils.cpp fritzing.2011.07.11.source/src/utils/folderutils.cpp
--- fritzing.2011.07.11.source.orig//src/utils/folderutils.cpp 2011-07-11 17:50:17.000000000 +0200
+++ fritzing.2011.07.11.source/src/utils/folderutils.cpp 2011-07-29 11:06:55.000000000 +0200
@@ -154,11 +154,14 @@
}
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)