27 lines
1,022 B
Text
27 lines
1,022 B
Text
Index: src/common/file_location.c
|
|
--- src/common/file_location.c.orig
|
|
+++ src/common/file_location.c
|
|
@@ -38,12 +38,12 @@
|
|
#include "common/grealpath.h"
|
|
#include "darktable.h"
|
|
#include "file_location.h"
|
|
-#include "whereami.h"
|
|
|
|
void dt_loc_init(const char *datadir, const char *moduledir, const char *localedir, const char *configdir, const char *cachedir, const char *tmpdir)
|
|
{
|
|
// Assemble pathes
|
|
char* application_directory = NULL;
|
|
+#if 0
|
|
int dirname_length;
|
|
// calling wai_getExecutablePath twice as recommended in the docs:
|
|
// the first call retrieves the length of the path
|
|
@@ -56,6 +56,9 @@ void dt_loc_init(const char *datadir, const char *modu
|
|
// strip of the executable name from the path to retrieve the path alone
|
|
application_directory[dirname_length] = '\0';
|
|
}
|
|
+#else
|
|
+ asprintf(&application_directory, "%s", "/usr/local/bin");
|
|
+#endif
|
|
dt_print(DT_DEBUG_DEV, "application_directory: %s\n", application_directory);
|
|
|
|
// set up absolute pathes based on their relative value
|