Package: xyscan / 4.30-2

no-usr-local.patch Patch series | download
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
changed all /usr/local paths to /usr
Index: xyscan/src/xyscanWindow.cpp
===================================================================
--- xyscan.orig/src/xyscanWindow.cpp
+++ xyscan/src/xyscanWindow.cpp
@@ -641,7 +641,7 @@ void xyscanWindow::createHelpBrowser()
     //
     //  The documentation is in the docs/ directory.
     //  On MacOS it is the app bundle under Resources,
-    //  on Linux typically in /usr/local/share/xyscan.
+    //  on Linux typically in /usr/share/xyscan.
     //  Here we go through the various options step by step.
     //
     
@@ -678,11 +678,11 @@ void xyscanWindow::createHelpBrowser()
     //  4. Linux
     //
     if (!dir.exists()) {
-        path = "/usr/local/share/xyscan/docs";
+        path = "/usr/share/xyscan/docs";
         dir.setPath(path);
     }
     if (!dir.exists()) {
-        path = "/opt/local/share/xyscan/docs";
+        path = "/opt/share/xyscan/docs";
         dir.setPath(path);
     }
     
@@ -691,11 +691,11 @@ void xyscanWindow::createHelpBrowser()
     //     was found so far. More an act of desperation.
     //
     if (!dir.exists()) {
-        path = "/usr/local/xyscan/docs";
+        path = "/usr/xyscan/docs";
         dir.setPath(path);
     }
     if (!dir.exists()) {
-        path = "/opt/local/xyscan/docs";
+        path = "/opt/xyscan/docs";
         dir.setPath(path);
     }
     if (!dir.exists()) {