Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef MACOSX
- string app_path;
- string bundle_res;
- string bundle_data;
- string bundle_lib;
- if (is_system_path_defined("<APPBUNDLE>")) {
- app_path = get_system_path("<APPBUNDLE>");
- if (U7exists(app_path)) {
- bundle_res = app_path;
- bundle_res += "/Contents/Resources";
- bundle_data = bundle_res;
- bundle_data += "/share";
- bundle_lib = bundle_res;
- bundle_lib += "/lib";
- const gchar *bdata = bundle_data.ToCharArray()[0];
- g_setenv("XDG_DATA_DIRS", bdata, 0);
- g_setenv("GTK_DATA_PREFIX", bundle_res, 0);
- g_setenv("GTK_EXE_PREFIX", bundle_res, 0);
- g_setenv("GTK_PATH", bundle_res, 0);
- g_setenv("GDK_PIXBUF_MODULE_FILE", bundle_lib + "/gdk-pixbuf-2.0/2.10.0/loaders.cache", 0);
- g_setenv("GTK_IM_MODULE_FILE", bundle_lib + "/gtk-3.0/3.0.0/immodules.cache", 0);
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement