Patch #1433 2006-08-29 21:18

afb

SELFPATH not available on all GTK platforms
Download
1433-SELFPATH_not_a.patch (502 bytes)
Category
Platform-Specific
Status
Accepted
Close date
2006-11-03 23:54
Assigned to
afb
--- src/src/app.cpp.orig    2006-08-29 00:27:54.000000000 +0200
+++ src/src/app.cpp    2006-08-29 00:41:04.000000000 +0200
@@ -665,11 +665,13 @@
     if (!m_Prefix.IsEmpty())
         return m_Prefix;
 
+#ifdef SELFPATH
     // SELFPATH is a macro from prefix.h (binreloc)
     // it returns the absolute filename of us
     // similar to win32 GetModuleFileName()...
     base = wxString(SELFPATH,wxConvUTF8);
     base = wxFileName(base).GetPath();
+#endif
     if (base.IsEmpty())
         base = _T(".");
 #endif
afb 2006-11-03 23:54

Added in 3178