Patch for sandbox...
- From: "R. Douglas Barbieri" <dooglio gmail com>
- To: gtk-i18n-list gnome org
- Subject: Patch for sandbox...
- Date: Tue, 19 Sep 2006 22:41:51 -0700
Hi all,
I have a need to make pango work in a sandbox under Linux. The Win32
port seems to handle it just fine, but not the Linux port (as
evidenced in pango-utils.c pango_get_lib_subdirectory() and
pango_get_sysconf_subdirectory() ).
Anyway, I created a patch to make pango try to get the sysconfdir and
the libdir from the environment instead of the SYSCONFDIR and LIBDIR
definitions set at compile time. I've attached said patch.
The environment variables are PANGO_SYSCONFDIR and PANGO_LIBDIR
respectively. If they do not exist in the environment, the library
will fall back to the compile-time definitions.
Let me know if this works or not for you guys.
Thanks!
--
R. Douglas Barbieri
doug dooglio net
--- pango-utils.c 2005-07-27 15:14:46.000000000 -0700
+++ /home/doug/src/pango-utils.c 2006-09-19 22:13:49.000000000 -0700
@@ -672,7 +672,15 @@
return result;
#else
- return SYSCONFDIR "/pango";
+ gchar* result = g_getenv( "PANGO_SYSCONFDIR" );
+ if( result )
+ {
+ return result;
+ }
+ else
+ {
+ return SYSCONFDIR "/pango";
+ }
#endif
}
@@ -700,7 +708,15 @@
return result;
#else
- return LIBDIR "/pango";
+ gchar* result = g_getenv( "PANGO_LIBDIR" );
+ if( result )
+ {
+ return result;
+ }
+ else
+ {
+ return LIBDIR "/pango";
+ }
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]