File: wm5-path

package info (click to toggle)
libmstoolkit 77.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,164 kB
  • ctags: 2,746
  • sloc: cpp: 8,738; ansic: 3,443; makefile: 84; sh: 24
file content (15 lines) | stat: -rw-r--r-- 779 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Remove code making call to getenv. We hardcode the path to the lib data.
--- a/LibApplications/Wm5Application.cpp
+++ b/LibApplications/Wm5Application.cpp
@@ -40,7 +40,10 @@
     // WM5_PATH environment variable in order for the applications to find
     // various data files.
 #ifndef __APPLE__
-    Application::WM5Path = Environment::GetVariable("WM5_PATH");
+    // Debian packaging modifs by FR <lopippo@debian.org>.
+    // We do not want to handle paths with environment variables.
+    // Application::WM5Path = Environment::GetVariable("WM5_PATH");
+    Application::WM5Path = "/usr/share/libmstoolkit/";
 #else
     // Mac OS X Lion returns NULL on any getenv call (such as the one in
     // Environment::GetVariable).  This hack works around the problem.