aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/misc/qcad/application-dir.patch
blob: 0b8a29319eb3dc12ef2b98866b1d401d11b89b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff --git a/src/core/RS.cpp b/src/core/RS.cpp
index d8a135d6f..659795dbb 100644
--- a/src/core/RS.cpp
+++ b/src/core/RS.cpp
@@ -151,7 +151,7 @@ QStringList RS::getDirectoryList(const QString& subDirectory) {
     dirList.append(appDir + "/../../../" + subDirectory);
     dirList.append(QDir::currentPath() + "/" + subDirectory);
 #else
-    dirList.append(appDir + "/" + subDirectory);
+    dirList.append(appDir + "/../lib/" + subDirectory);
 #endif
 
     /*
diff --git a/src/core/RSettings.cpp b/src/core/RSettings.cpp
index c6c31cbf5..c51b59ce6 100644
--- a/src/core/RSettings.cpp
+++ b/src/core/RSettings.cpp
@@ -367,6 +367,8 @@ QString RSettings::getApplicationPath() {
         ret.cdUp();
     }
 
+    ret.cd("../lib");
+
     return ret.path();
 }
 
@@ -1268,7 +1270,7 @@ QString RSettings::getRevisionString() {
 }
 
 QString RSettings::getReleaseDate() {
-    return __DATE__;
+    return "";
 }
 
 int RSettings::getSnapRange() {
diff --git a/qcad.desktop b/qcad.desktop
index 93c5e9720..2d0e6bf32 100644
--- a/qcad.desktop
+++ b/qcad.desktop
@@ -48,7 +48,7 @@ Comment[sv]=2D CAD-system
 Comment[sl]=Sistem 2D CAD
 Comment[uk]=2D САПР
 Comment[tr]=2D CAD Sistemi
-Exec=qcad %F
+Exec=qcad-bin %F
 X-MultipleArgs=true
 Icon=qcad_icon
 Terminal=false