Re: GTK+3 win32/64 build environment
- From: Paul Davis <paul linuxaudiosystems com>
- To: Marc-André Lureau <marcandre lureau gmail com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GTK+3 win32/64 build environment
- Date: Wed, 10 Apr 2013 14:28:15 -0400
On Wed, Apr 10, 2013 at 2:23 PM, Paul Davis
<paul linuxaudiosystems com> wrote:
application or toolkit specific. the search order should be:
getenv (MYAPP_DATA_DIR)
get_executable_path () + sub-dir
standard system dir(s)
compile-time value
no. g_get_system_data_dirs() does not work for relocatable applications, at least not on *nix-ish systems.
just to reinforce that point, code from g_get_system_data_dirs():
#ifdef G_OS_WIN32
data_dir_vector = (gchar **) g_win32_get_system_data_dirs_for_module (NULL);
#else
gchar *data_dirs = (gchar *) g_getenv ("XDG_DATA_DIRS");
if (!data_dirs || !data_dirs[0])
data_dirs = "/usr/local/share/:/usr/share/";
data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
#endif
G_OS_WIN32 is the only case where the location of the executable/module is taken into account. Total fail for OS X and arguably a PITA for linux etc. as well.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]