GNOME Bugzilla – Bug 168283
Scripts submenu broken by some scripts
Last modified: 2005-03-23 10:21:15 UTC
Some scripts, when put in the ~/.gnome2/nautilus-scripts directory, makes the scripts submenu disappear totally. I can't put my finger on exactly which scripts. This is since I upgraded nautilus from 2.8.x to 2.9.x. See discussion on http://gnomesupport.org/forums/viewtopic.php?p=46054 for further details.
works fine here. Could you attach a such script to the bug ?
Created attachment 37960 [details] A script that breaks the scripts submenu Note: The same script but without the ${1} (with "echo foo") works fine.
this script works fine here. What version of nautilus are you using ? Do you have any error in ~/.xsession-errors ?
I'm not sure anymore if the scripts in the directory is relevant. Now I only have one script in it, one that worked before, and I still haven't got any scripts submenu. Someone at gnomesupport suggested it might have with locale to do, but where do I change that? The nautilus version is 2.9.91 (rawhide rpm), and no, I don't seem to have anything related to this in .xsession-errors.
what mode is set on the script ? what version of shared-mime-info are you using ?
I've experimented with different protection modes, it doesn't seem to make any difference. Currently it's -rw-rw-r--. shared-mime-info is 0.15-10.
chmod 755 doesn't change anything ?
Nope.
I've the same problem (version 2.9.91) I've only one script in the right folder and with execution rigths, and no script submenu ... This script worked fine on 2.8.2 ----- here is the (dummy) script ---- #!/bin/bash TMP=$(mktemp) echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS | sed -e "s/ \//\n\//g" >> $TMP echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS | zenity --text-info (echo $TMP; cat $TMP) | zenity --list --column="test" rm $TMP -------------EOF------------------
works fine here. What distro are you using ?
I'm using Fedora development.
can you open a bug in the fedora bugzilla? perhaps they are making changes in some packages ...
I did, almost a month ago. Doesn't seem that anybody there is really interested. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=147904 I looked at the .src.rpm though, and I don't found anything relevant there. Just one patch, which just changes the default theme, and I found nothing fancy in the spec.
I can confirm this problem in Gentoo Linux - after upgrade from GNOME 2.8 to 2.10 (nautilus-2.10.0) I don't see Scripts submenu at all, independently on ~/.gnome2/nautilus-scripts contents. Locales cs_CZ.UTF-8 and C. Messages: (nautilus:1233): libgnomevfs-WARNING **: Cannot load module `/usr/lib/gnome-vfs-2.0/modules/libvfolder-desktop' (/usr/lib/gnome-vfs-2.0/modules/libvfolder-desktop.so: cannot open shared object file: No such file or directory) (nautilus:1233): libgnomevfs-WARNING **: Cannot load module `/usr/lib/gnome-vfs-2.0/modules/libvfolder-desktop' (/usr/lib/gnome-vfs-2.0/modules/libvfolder-desktop.so: cannot open shared object file: No such file or directory) (nautilus:1233): libgnomevfs-WARNING **: Cannot load module `/usr/lib/gnome-vfs-2.0/modules/libvfolder-desktop' (/usr/lib/gnome-vfs-2.0/modules/libvfolder-desktop.so: cannot open shared object file: No such file or directory) (nautilus:1233): libgnomevfs-WARNING **: Cannot load module `/usr/lib/gnome-vfs-2.0/modules/libvfolder-desktop' (/usr/lib/gnome-vfs-2.0/modules/libvfolder-desktop.so: cannot open shared object file: No such file or directory) *** attempt to put segment in horiz list twice *** attempt to put segment in horiz list twice
Confirming the same problem for SuSE Linux 9.3 beta3, LANG=cs_CZ.UTF-8 - Scripts submenu does not exist. Tried with empty scripts directory, directory with upper mentioned test script and with my scripts from GNOME 2.8.
I can confirm the same problem on Arch Linux. My script menu is gone. I had 5 scripts there that used to be visible with gnome 2.8.3.
Ok. I guess this bug can't be classed as unconfirmed anymore. Anybody got any hints what could be wrong?
I found the problem. Nautilus 2.10 does not work with shared-mime-info 0.15 in regards to scripts. It requires the *CVS* version of it. I just overwrote my distribution's shared-mime-info package (0.15, latest stable version) with the CVS version, and restarted nautilus. The scripts where now visible. I don't want to start babbling, but this should not have happened. If the Gnome project required new features from shared-mime-info, they should have released a new tarball of it to accompany Nautilus.
that explain why I don't get the bug, hoary has CVS package. BTW that's not a nautilus issue, I'm closing this bug. You can ask to freedesktop guys to roll a new tarball or to your distributions to update.
Could the Gnome project please ask this to the freedesktop.org guys (Alex maybe)? I mean, what is the point of the users of all the distributions mentioned above writing emails or filing bugs for it? (it's not their bug either!) The Gnome project did the mistake by making Nautilus depend on an unreleased version of an third party library, not freedesktop, neither our distros. But it's the users who paid, and now the users are even asked to go beg for a release. Did ever anyone actually tested Gnome 2.10 on a virgin installation btw? That's testing 101. I really hate to be seen as a raving lunatic here, but I find this whole story, how can I put it, problematic of how the project does testing. And I write this with true concern and love about Gnome.
nautilus depends on a CVS version You can consider than the current version of shared-mime-info, that's a freedesktop. I think that Christophe Fergeau is the maintainer for this module, I'll ask him if he can roll a tarball. For your other point, this menu is only a random feature on one app ....
my scripts all worked fine after removing the #!/bin/bash in my opinion it's still a bug, why should scripts starting with #!/bin/bash not work?
*** Bug 170916 has been marked as a duplicate of this bug. ***
For gentoo users, there was a bug in shared-mime-info 0.15, see http://bugs.gentoo.org/show_bug.cgi?id=85799 for a fix.
So what did Fergeau say? Are there gonna be a s-m-i release soon so we get this fixed?
he has no internet access from home atm so that's not easy to roll a tarball. You can use the CVS version or ask your distro to fix that for the moment.