[python-caja] add python-caja_fix-extensions-path.patch

Wolfgang Ulbrich raveit65 at fedoraproject.org
Sat Apr 5 08:42:22 UTC 2014


commit 4dc9e003e1bffe26a83c21c353db6717b4395f00
Author: raveit65 <chat-to-me at raveit.de>
Date:   Sat Apr 5 10:42:07 2014 +0200

    add python-caja_fix-extensions-path.patch

 python-caja_fix-extensions-path.patch |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/python-caja_fix-extensions-path.patch b/python-caja_fix-extensions-path.patch
new file mode 100644
index 0000000..18b74ff
--- /dev/null
+++ b/python-caja_fix-extensions-path.patch
@@ -0,0 +1,20 @@
+diff -upr python-caja-1.4.0-orig/src/caja-python.c python-caja-1.4.0/src/caja-python.c
+--- python-caja-1.4.0-orig/src/caja-python.c	2012-07-11 19:00:19.000000000 +0200
++++ python-caja-1.4.0/src/caja-python.c	2014-04-05 10:13:45.013700924 +0200
+@@ -363,7 +363,15 @@ caja_module_initialize(GTypeModule *modu
+ 
+ 	all_types = g_array_new(FALSE, FALSE, sizeof(GType));
+ 
+-	// Look in the new global path, $DATADIR/caja-python/extensions
++	// Look in the new global path, $DATADIR/python-caja/extensions
++	caja_python_load_dir(module, DATADIR "/python-caja/extensions");
++
++	// Look in new XDG_DATA_DIR, ~/.local/share/python-caja/extensions
++	user_extensions_dir = g_build_filename(g_get_user_data_dir(), 
++		"caja-python", "extensions", NULL);
++	caja_python_load_dir(module, user_extensions_dir);
++
++	// Look in the global path, $DATADIR/caja-python/extensions
+ 	caja_python_load_dir(module, DATADIR "/caja-python/extensions");
+ 
+ 	// Look in XDG_DATA_DIR, ~/.local/share/caja-python/extensions


More information about the scm-commits mailing list