17 Feb
2010
17 Feb
'10
10:17 p.m.
The issue is as follows
1. On Linux, we use XDG functions from GLib, like g_get_user_data_dir, to find our share/ directory and other things 2. On Windows, our share directory can be absolutely anywhere, and those functions are of little use 3. We solve this by calling the win32 function GetModuleFileName [1] 4. During implementing 3 somebody cut corners so that we use relative paths instead of appending our executable's directory in the front 5. For the hack in 4 to work, current directory must be set to the place where Inkscape's executable resides
[1] http://msdn.microsoft.com/en-us/library/ms683197%28VS.85%29.aspx
Regards, Krzysztof