After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168283 - Scripts submenu broken by some scripts
Scripts submenu broken by some scripts
Status: RESOLVED NOTGNOME
Product: nautilus
Classification: Core
Component: Scripts facilities
2.9.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 170916 (view as bug list)
Depends on:
Blocks: 167453
 
 
Reported: 2005-02-23 17:08 UTC by Daniel Eriksson
Modified: 2005-03-23 10:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A script that breaks the scripts submenu (37 bytes, text/plain)
2005-02-26 08:33 UTC, Daniel Eriksson
Details

Description Daniel Eriksson 2005-02-23 17:08:00 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.
Comment 1 Sebastien Bacher 2005-02-25 22:48:33 UTC
works fine here. Could you attach a such script to the bug ?
Comment 2 Daniel Eriksson 2005-02-26 08:33:33 UTC
Created attachment 37960 [details]
A script that breaks the scripts submenu

Note: The same script but without the ${1} (with "echo foo") works fine.
Comment 3 Sebastien Bacher 2005-02-26 11:35:11 UTC
this script works fine here. What version of nautilus are you using ? Do you
have any error in ~/.xsession-errors ?
Comment 4 Daniel Eriksson 2005-02-28 12:52:15 UTC
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.
Comment 5 Sebastien Bacher 2005-02-28 13:23:10 UTC
what mode is set on the script ? what version of shared-mime-info are you using ?
Comment 6 Daniel Eriksson 2005-02-28 13:38:10 UTC
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.
Comment 7 Sebastien Bacher 2005-02-28 14:13:13 UTC
chmod 755 doesn't change anything ? 
Comment 8 Daniel Eriksson 2005-02-28 15:13:38 UTC
Nope.
Comment 9 Simon Manlay 2005-03-01 16:52:50 UTC
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------------------
Comment 10 Sebastien Bacher 2005-03-05 22:15:49 UTC
works fine here. What distro are you using ?
Comment 11 Daniel Eriksson 2005-03-06 08:12:42 UTC
I'm using Fedora development.
Comment 12 Sebastien Bacher 2005-03-06 12:03:52 UTC
can you open a bug in the fedora bugzilla? perhaps they are making changes in
some packages ...
Comment 13 Daniel Eriksson 2005-03-06 16:19:17 UTC
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.
Comment 14 Stanislav Brabec 2005-03-14 20:48:24 UTC
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
Comment 15 Stanislav Brabec 2005-03-15 10:33:11 UTC
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.
Comment 16 Eugenia Loli-Queru 2005-03-16 07:02:11 UTC
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.
Comment 17 Daniel Eriksson 2005-03-17 15:36:15 UTC
Ok. I guess this bug can't be classed as unconfirmed anymore. Anybody got any
hints what could be wrong?
Comment 18 Eugenia Loli-Queru 2005-03-18 23:48:22 UTC
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.
Comment 19 Sebastien Bacher 2005-03-19 00:11:55 UTC
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.
Comment 20 Eugenia Loli-Queru 2005-03-19 00:31:52 UTC
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.
Comment 21 Sebastien Bacher 2005-03-19 11:50:26 UTC
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 ....
Comment 22 Sven J. 2005-03-19 12:29:15 UTC
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?
Comment 23 Olav Vitters 2005-03-19 17:49:52 UTC
*** Bug 170916 has been marked as a duplicate of this bug. ***
Comment 24 James Thomas 2005-03-20 16:28:40 UTC
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.
Comment 25 Daniel Eriksson 2005-03-22 10:39:10 UTC
So what did Fergeau say? Are there gonna be a s-m-i release soon so we get this
fixed?
Comment 26 Sebastien Bacher 2005-03-22 11:41:52 UTC
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.