Description: hardcode correct GLE_TOP_DIR for Debian
Author: Christian T. Steigies <cts@debian.org>
Last-Update: 2022-12-30
Index: gle-graphics-4.3.3/src/gle/config.cpp
===================================================================
--- gle-graphics-4.3.3.orig/src/gle/config.cpp
+++ gle-graphics-4.3.3/src/gle/config.cpp
@@ -664,8 +664,8 @@ bool do_load_config(const char* appname,
 					has_config = try_load_config_sub(conf_name, triedLocations);
 				}
 			#else
-				GLE_TOP_DIR = exe_name;
-				StripPathComponents(&GLE_TOP_DIR, 2);
+				// hardcode directory to /usr/share instead of /usr/bin
+				GLE_TOP_DIR = "/usr/share/gle-graphics";
 			#endif
 		} else {
 			// The user will see as error messege: "$GLE_TOP/some_file" not found.
