Description: A graphical handler of the nemo/caja/nautilus file manager python extensions, including some useful pyextensions.
INCLUDED PYTHON EXTENSIONS:
open-terminal-here.py allows to open the terminal window on the selected folder/current directory, with the right-click;
tortoisehg-here.py allows to open the TortoiseHG Workbench on the selected folder/current directory with the right-click;
open-as-root.py allows to open the selected file/folder as root user, so having administrator rights;
add-to-audacious-playlist.py allows to add all the selected audio files to the audacious playlist with the right-click;
meld-compare.py and kdiff3-compare.py allow to compare two selected files/folders with meld and kdiff3. meld is the best with files comparison and kdiff3 is the best with folders comparison; the kdiff3 version that is automatically installed when you activate kdiff3-compare is "kdiff3-qt", which is independent from the kde desktop;
replace-in-filenames.py allows to replace some text with other text in all the filenames of the current directory.
WRITTEN BY: Giuseppe Penone (aka giuspen)
SUPPORTED LANGUAGES: • English (default) • French (Pierre Prinetti, up to date) • Italian (Giuseppe Penone, up to date) • Japanese (Toshiharu Kudoh, up to date)Last changelog:
After I installed this using .deb package, Nautilus stopped working even after uninstalling PyExtensions.
Re-installing Nautilus was no use either.
I got this error message in Terminal:
ImportError: could not import gobject (could not find _PyGObject_API object)
Segmentation fault (core dumped)
Only after uninstalling and then re-installing python-nautilus and all other nautilus-xxx packages I could get Nautilus back to work...
Perhaps you should have added Nautilus 3.4 to package dependencies as well?
Weird, I'm running 14.04 myself with nautilus 3.10 and caja 1.8.1 and no problems. BTW Nautilus 3 is getting worse and worse, thanks god it was forked to Caja.
What's more weird: After I uninstalled it via Synaptic Package Manager and did the thorough cleaning, restore my Nautilus and other related packages, I saw your extensions appearing in the context menu and working fine with only one exception: Replace in Filenames appears only when a single file is selected and not when several files are selected (which I don't need much any way)
I discovered that actually all this was because "~/.local/share/nautilus-python/extensions" sub-folder remained after uninstallation.
Anyway, I've got it working in a strange way ;-)
The fact is that it is just a graphical interface and you have to use the interface to add/remove/activate/deactivate extensions with it.
Removing the graphical handler does not remove the activated extensions automatically.
Actually if you did not activate any extension there should be not any change to nautilus and no difference if nautilus-pyextensions is installed or not.
The problem you had may have been with the nautilus restart toolbutton (that I fixed with 3.4.1 today).
If you click on the toolbutton to restart nautilus, note that there's a lot of work required to the CPU especially if you are on an old PC, be patient just wait.
About the files renaming extension, that one works with all files in the current directory, not on the selected files.
If you want to help me understand if the problem is still there with 3.4.1, please install it again and play with it.
I confirm that I have no problems now, thanks...
But I wonder if the fact that I've recently begun seeing a black desktop for about 2 seconds (Nautilus starting too slow?) might be somehow related with problem I experienced earlier.
Does this utility make any Nautilus tweaks that could delay its startup?
Of course, it might be just a coincidence as well...
I'm glad that it works now, thank you for testing it!
As for the delay in the startup, the more extensions you enable (either python extensions or others that you install as packages) slightly slow down the nautilus boot/restart and also the nightilus right click, but this should be almost imperceptible, two seconds seems to be a bit too much.
But I got this error:
Traceback (most recent call last):
File "/home/zhuqin/.nautilus/python-extensions/move-to-browsed-place.py", line 68, in get_file_items
if not os.access(urllib.unquote(sel_items[0].get_parent_uri()[7:]), os.W_OK):
IndexError: list index out of range
It's archlinux with python 2.6. It still works though.
BTW, if I translate those msgs to chinese, it refuses to work unless I add:
# -*- Mode: python; coding: utf-8; -*-
Keep it up ^_^
Ratings & Comments
9 Comments
After I installed this using .deb package, Nautilus stopped working even after uninstalling PyExtensions. Re-installing Nautilus was no use either. I got this error message in Terminal: ImportError: could not import gobject (could not find _PyGObject_API object) Segmentation fault (core dumped) Only after uninstalling and then re-installing python-nautilus and all other nautilus-xxx packages I could get Nautilus back to work... Perhaps you should have added Nautilus 3.4 to package dependencies as well?
Weird, I'm running 14.04 myself with nautilus 3.10 and caja 1.8.1 and no problems. BTW Nautilus 3 is getting worse and worse, thanks god it was forked to Caja.
What's more weird: After I uninstalled it via Synaptic Package Manager and did the thorough cleaning, restore my Nautilus and other related packages, I saw your extensions appearing in the context menu and working fine with only one exception: Replace in Filenames appears only when a single file is selected and not when several files are selected (which I don't need much any way) I discovered that actually all this was because "~/.local/share/nautilus-python/extensions" sub-folder remained after uninstallation. Anyway, I've got it working in a strange way ;-)
The fact is that it is just a graphical interface and you have to use the interface to add/remove/activate/deactivate extensions with it. Removing the graphical handler does not remove the activated extensions automatically. Actually if you did not activate any extension there should be not any change to nautilus and no difference if nautilus-pyextensions is installed or not. The problem you had may have been with the nautilus restart toolbutton (that I fixed with 3.4.1 today). If you click on the toolbutton to restart nautilus, note that there's a lot of work required to the CPU especially if you are on an old PC, be patient just wait. About the files renaming extension, that one works with all files in the current directory, not on the selected files. If you want to help me understand if the problem is still there with 3.4.1, please install it again and play with it.
Thanks a lot, I'll give it another try in the coming days and will let you know if I see any problems.
I confirm that I have no problems now, thanks... But I wonder if the fact that I've recently begun seeing a black desktop for about 2 seconds (Nautilus starting too slow?) might be somehow related with problem I experienced earlier. Does this utility make any Nautilus tweaks that could delay its startup? Of course, it might be just a coincidence as well...
I'm glad that it works now, thank you for testing it! As for the delay in the startup, the more extensions you enable (either python extensions or others that you install as packages) slightly slow down the nautilus boot/restart and also the nightilus right click, but this should be almost imperceptible, two seconds seems to be a bit too much.
But I got this error: Traceback (most recent call last): File "/home/zhuqin/.nautilus/python-extensions/move-to-browsed-place.py", line 68, in get_file_items if not os.access(urllib.unquote(sel_items[0].get_parent_uri()[7:]), os.W_OK): IndexError: list index out of range It's archlinux with python 2.6. It still works though. BTW, if I translate those msgs to chinese, it refuses to work unless I add: # -*- Mode: python; coding: utf-8; -*- Keep it up ^_^
Thanks for your report... I will try to reproduce this Index Error.