[nautilus-python/nautilus-3.0] Don't look in the old /usr/lib/nautilus and ~/.nautilus/python-extensions folders, let's break clean
- From: Adam Plumb <adamplumb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-python/nautilus-3.0] Don't look in the old /usr/lib/nautilus and ~/.nautilus/python-extensions folders, let's break clean
- Date: Thu, 17 Mar 2011 14:05:21 +0000 (UTC)
commit 73d2739c4a91d80710b14ff5f192875a34f10a94
Author: Adam Plumb <adamplumb gmail com>
Date: Thu Mar 17 10:05:17 2011 -0400
Don't look in the old /usr/lib/nautilus and ~/.nautilus/python-extensions folders, let's break clean from that
README | 7 ++-----
src/nautilus-python.c | 9 ---------
2 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/README b/README
index 38e4c01..83e7b47 100644
--- a/README
+++ b/README
@@ -6,8 +6,6 @@ introduced in Gnome 2.6.
For examples and documentation check the examples sub directory.
-Note that scripts are loaded from $prefix/lib/nautilus/extensions-2.0/python.
-
As of nautilus-python 0.7.0, scripts are also loaded from $XDG_DATA_DIR/nautilus-python/extensions,
which includes ~/.local/share and /usr/share (or whatever your $XDG_DATA_DIR is
set to).
@@ -17,10 +15,9 @@ Try to copy test.py to that directory for an example
Requirements
============
-Nautilus 2.22.0
+Nautilus 2.32.0
Python 2.3
-PyGtk 2.8.0
-PyGObject 2.16.0
+PyGObject 2.28.0
Problems
========
diff --git a/src/nautilus-python.c b/src/nautilus-python.c
index 29a72d1..d222140 100644
--- a/src/nautilus-python.c
+++ b/src/nautilus-python.c
@@ -299,15 +299,6 @@ nautilus_module_initialize(GTypeModule *module)
user_extensions_dir = g_build_filename(g_get_user_data_dir(),
"nautilus-python", "extensions", NULL);
nautilus_python_load_dir(module, user_extensions_dir);
-
- // Look in the old local path, ~/.nautilus/python-extensions
- user_extensions_dir = g_build_filename(g_get_home_dir(),
- ".nautilus", "python-extensions", NULL);
- nautilus_python_load_dir(module, user_extensions_dir);
- g_free(user_extensions_dir);
-
- // Look in the old global path, /usr/lib(64)/nautilus/extensions-2.0/python
- nautilus_python_load_dir(module, NAUTILUS_EXTENSION_DIR "/python");
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]