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 73773 - renaming items via 'edit launcher' slightly broken
renaming items via 'edit launcher' slightly broken
Status: VERIFIED INCOMPLETE
Product: gnome-vfs
Classification: Deprecated
Component: Module: vfolder
cvs (head)
Other Linux
: High major
: ---
Assigned To: George Lebl
George Lebl
: 73839 85299 87464 (view as bug list)
Depends on: 84841
Blocks: 72715 86322
 
 
Reported: 2002-03-06 21:08 UTC by Miles Lane
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.0


Attachments
Allow non-file:// URI when renaming .desktop files (2.70 KB, patch)
2002-08-06 22:02 UTC, Alex Graveley
none Details | Review

Description Miles Lane 2002-03-06 21:08:35 UTC
Repro:

Load applications:///
Right-mouseclick on Accessories
Select Rename
Enter any text and submit.

Result:

There is no "Accessories" in this folder.
Perhaps it was moved or deleted?
Comment 1 mike 2002-04-03 11:06:38 UTC
This should be linked to 72715 as connected with non-functioning menu 
editor
Comment 2 Luis Villa 2002-05-01 02:39:52 UTC
*** Bug 73839 has been marked as a duplicate of this bug. ***
Comment 3 Alex Graveley 2002-05-17 22:11:47 UTC
Fixed in CVS.
Comment 4 Miles Lane 2002-06-07 05:30:12 UTC
Nope.  This is not working for me with a full platform
build of today's code.
Comment 5 Alex Graveley 2002-06-07 07:57:04 UTC
Does the rename show up after a manual refresh?  If not, is an error
dialog displayed?
Comment 6 Miles Lane 2002-06-07 09:07:16 UTC
No error is shown and reloading doesn't show a new name.
Closing the window and reopening applications:/// also
does not show the new name.

When I initially select Rename from the folder's 
context menu, the log output shows:

(nautilus:11902): GnomeUI-CRITICAL **: file gnome-icon-item.c: line
129 (send_focus_event): assertion `GTK_WIDGET_HAS_FOCUS (widget) ==
in' failed
Comment 7 Luis Villa 2002-06-07 17:13:51 UTC
Closing and reopening does update the text- so I assume this is a
duplicate of some part of bug 81670, george, alex?
Comment 8 Luis Villa 2002-06-07 18:18:01 UTC
OK, after some reflection, we're not going to hold the release over
this. I'd like to see it in ASAP, of course, and if it is a small fix,
I'll see that it is acceptable to release team, but given that one can
delete and add things instead of renaming, I'm having a hard time
seeing this as a release blocker. 
Comment 9 Miles Lane 2002-06-07 19:45:53 UTC
The renaming doesn't work for me at all.  
My Applications menu still shows "untitled folder".
Closing and reponing applications:/// does not help
for me.

Also, attempting to add a launcher causes Nautilus to hang.
100% repeatable.  The launcher does get created.

Repro:

Open applications:///
Open the Games folder
Right-mouseclick -> Add Launcher
Fill in launcher name, command and select an icon.
Submit

Result:

The open Nautilus window stops refreshing.
I have to restart Nautilus to get rid of the window.
The launcher does get created.
Comment 10 Luis Villa 2002-06-07 20:24:17 UTC
Argh. 'Works' here with this morning's code, that's all I can say on
that count. George, Alex: any clues?
Comment 11 Miles Lane 2002-06-07 20:41:16 UTC
Luis,

How are you installing your builds?  Red Carpet?
If so, do you have Gnome1 installed as well?
I am building from cvs using v-b-s.
Comment 12 Luis Villa 2002-06-08 15:33:12 UTC
RC, with gnome1.
Comment 13 mike 2002-06-11 14:24:01 UTC
Please see new bug 84841 - renaming now wipes entry among other 
problems - major reversion
Comment 14 Luis Villa 2002-06-25 21:20:10 UTC
*** Bug 85299 has been marked as a duplicate of this bug. ***
Comment 15 Luis Villa 2002-07-09 04:35:33 UTC
*** Bug 87464 has been marked as a duplicate of this bug. ***
Comment 16 Alex Graveley 2002-07-29 16:56:57 UTC
Fixed with vfolder rewrite, which can be found on the
gnome-vfs-2-0-vfolder-rewrite branch of gnome-vfs.
Comment 17 mike 2002-07-30 14:34:29 UTC
What date of cvs was this fixed in - not fixed as of sunday
Comment 18 Luis Villa 2002-07-30 17:27:46 UTC
Reopening; Alex, this isn't fixed in this morning's CVS. What I did:
*right-click on the 'Open Office' icon in applications:///, select
'rename'
*type in OO.o as the new name
*killall gnome-panel, hit reload in nautilus (just to be sure.)
*now have no icon in panel menu and two icons, both named Open Office,
in applications:///.
Comment 19 Alex Graveley 2002-08-06 22:00:07 UTC
This is a nautilus bug.  It is checking that the file has a URI
starting with file:// before doing the .desktop rename, otherwise it
falls back to regular file rename.

Patch attached below...
Comment 20 Alex Graveley 2002-08-06 22:02:18 UTC
Created attachment 10311 [details] [review]
Allow non-file:// URI when renaming .desktop files
Comment 21 Alex Graveley 2002-08-06 22:53:10 UTC
Fixed in CVS.
Comment 22 mike 2002-08-07 05:10:45 UTC
Still not fixed with a fresh checkout of eel/nautilus - worse if anything

Current ststus
rename of launchers works
rename of folders either works or totally obliterates folder (not
recoverable) - every trace of my favorites folder has now gone
including vfolder in /etc 
New apps dont get registered in menus
reload of nautilus does not update display
Comment 23 Alex Graveley 2002-08-07 06:02:25 UTC
Have you updated to latest gnome-vfs from the
gnome-2-0-vfolder-rewrite branch?
Comment 24 Luis Villa 2002-08-07 22:31:38 UTC
So, with latest build (from some point this afternoon) I get a rename.
Yay! Unfortunately, when I close applications: and then reopen I get a
double icon in applications:.  On the plus side, when I restart
gnome-panel it is also changed there, and there isn't a duplicate.
Comment 25 mike 2002-08-08 02:59:48 UTC
Alex - all my comments are based on gnome-vfs rewrite, eel and
nautilus as of am 7/8/2002

Luis - I am finding massive inconsistency - sometimes it seems to work
- sometimes it doesn't or wipes out stuff
Comment 26 Luis Villa 2002-08-10 21:55:05 UTC
OK, this now works for me in all cases except when I rename using the
'edit launcher' option in the right click menu. It seems to always
work otherwise, and even in that case it is reflected in the panel
menu- just not in applications:// until I reload the view.
Comment 27 Luis Villa 2002-08-12 21:50:42 UTC
Apparently this is the fault now of bug 81670; marking dup.

*** This bug has been marked as a duplicate of 81670 ***
Comment 28 mike 2002-08-13 15:33:27 UTC
I am getting a segmentation fault from nautilus (sometimes the panel)
whenever I edit the folder launcher
Comment 29 Alex Graveley 2002-08-13 16:27:34 UTC
Mike, Can you please attach a stack strace for both the panel and
nautilus?  To avoid bogus stacks, it is best to attach gdb to the
process before you edit the launcher.
Comment 30 Alex Graveley 2002-08-14 21:50:55 UTC
This should be fixed with latest CVS.
Comment 31 Luis Villa 2002-08-15 21:13:40 UTC
This is not fixed in a build from this morning. Looks like (AFAICT)
81670 still doesn't work.
Comment 32 Luis Villa 2002-08-15 21:23:28 UTC
For example, testing 73770 works fine in panel, and works fine after a
reload of applications:. So it's still not updating correctly.
Comment 33 mike 2002-08-16 02:13:32 UTC
On my system with latest cvs - no different from pre-gnome2
ie: rename of individual launchers works
rename of folders either doesnt work at all or crashes nautilus
for default folders removes them
copy and paste of folders works, but of course they cant be renamed

There seems to be a permissions problem somewhere
(note whenever I attach gdb to nautilus, nautilus hangs until I kill gdb)
Comment 34 Alex Graveley 2002-08-16 10:39:42 UTC
Luis, I am unable to duplicate what you are seeing at all.  Please
reopen this if it is still happening after a fresh install.

Mike, folder renaming is covered by another bug, and since this seems
to be the only issue you mention, I'm closing this one.
Comment 35 Ross Burton 2002-08-16 15:40:14 UTC
Using gnome-vfs2-2.0.1.0.200208151304-0.snap.ximian.1, I get the
following behaviour:

* in Nautilus, renaming a folder by pressing F2 results in the folder
disappearing
* renaming a launcher by right-clicking and pressing Edit Launcher
achieves nothing
* renaming a launcher by pressing F2 results in the launcher changing
name in the nautilus window, but restarting the panel still shows the
old name.
Comment 36 Alex Graveley 2002-08-16 15:47:10 UTC
I suspect that your snapshots are too old.  The code to fix some of
this stuff went in late last night.  Please try with latest source or
wait for next round of snaps.  I'll mark NEEDINFO in the meantime.
Comment 37 mike 2002-08-16 16:10:13 UTC
Alex - what bug is renming in if not this one
Comment 38 Alex Graveley 2002-08-16 16:13:09 UTC
Sorry, it is part of bug 89616.
Comment 39 Luis Villa 2002-08-22 21:31:20 UTC
I'm closing this; I've tested everything Mike listed as an issue and
it works now in public snaps. Mike, if you could confirm I'd really
appreciate it.