add bookmark is broken in oneiric's nautilus

Bug #827049 reported by Rocko
82
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Nautilus
Expired
Medium
nautilus (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

I can no longer add a bookmark to nautilus in the current Oneiric.

If you try and drag a folder to the very bottom of the bookmarks section immediately after opening a nautilus window, it doesn't get added to the bookmarks. This also prevents newly-created users from ever adding a bookmark. If you drag a folder to the middle of the bookmarks section, it gets added, and at this point you can drag folders to the very bottom of the bookmark section (at least until you close nautilus and reopen it).

Choosing 'Add Bookmark' from the often menu does nothing.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: nautilus 1:3.1.4-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-8.11-generic 3.0.1
Uname: Linux 3.0.0-8-generic i686
Architecture: i386
Date: Tue Aug 16 08:58:27 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha i386 (20110803.1)
SourcePackage: nautilus
UpgradeStatus: Upgraded to oneiric on 2011-08-12 (3 days ago)

Revision history for this message
Rocko (rockorequin) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, that works fine for me, could you please attach your ~/.xsession-errors file to the report? does it works fine with any other user created on your system? thanks.

Changed in nautilus (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Rocko (rockorequin) wrote :

Here is .xsession-errors. It doesn't change when I try to add a bookmark.

I haven't created any other users yet - this is a fresh install + updates from the latest alpha. I'll make another user and report back.

Revision history for this message
Rocko (rockorequin) wrote :

Nope, it doesn't work for a brand new user either. I created an admin user in case that makes any difference. It was fun creating the new user because it made gnome-control-center crash, and then shortly afterwards compiz crashed, but that is probably not relevant to this bug.

Revision history for this message
Rocko (rockorequin) wrote :

I also can't change the preferences 'show new folders in icon view'. It is stuck in list view. I have checked that all the files in the home folder are owned by my user.

Where does nautilus store its settings?

What more information can I provide?

Revision history for this message
Rocko (rockorequin) wrote :

I've confirmed this bug after upgrading my host PC to Oneiric beta1 (I first logged this bug after finding it in a newly-installed VM). The existing bookmarks are in nautilus, but Add Bookmark (or drag'n'drop) does nothing.

I am getting some .xsession-errors related to nautilus:

(nautilus:2841): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to underallocate NautilusPathBar's child GtkButton 0x17a4480. Allocation is 24x37, but minimum required size is 27x27.

and

(nautilus:2841): GLib-GObject-CRITICAL **: g_value_get_object: assertion `G_VALUE_HOLDS_OBJECT (value)' failed

but they don't appear to be related to this bug.

Changed in nautilus (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Rocko (rockorequin) wrote :

I think the problem can be reproduced as follows:

1. Open the home folder by clicking on the home icon in unity.

2. Try and drag'n'drop a folder to the sidebar.

If you tried to drag it anywhere but the bookmarks subsection of the sidebar, the folder zooms back whence it came and isn't added to the bookmarks. (It would certainly be more user-friendly if it were added to the bookmarks instead.)

If you tried to drag it to the bottom of the bookmarks section, ie under the last listed bookmark, it also zooms back whence it came is isn't added to the bookmarks. It *should* be added to the bookmarks. I think this is also the default case for a brand new user, who has no bookmarks by definition and therefore cannot add one.

If you drag it across to elsewhere in the bookmarks section, it is added. And at that point you can also drag another folder to the very bottom of the bookmarks section, ie it starts to work.

Closing the nautilus window and re-opening it causes the same issue as above.

description: updated
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks, got the bug with the last comment, this looks similar to bug https://bugzilla.gnome.org/show_bug.cgi?id=652067 ; I'll be commenting on that one, thanks again.

Changed in nautilus (Ubuntu):
status: Confirmed → Triaged
Changed in nautilus:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Reinis Ivanovs (dabas) wrote :

Yet another regression for power users. These things worked fine and users like me relied on them. You just take and break them ADDING NOTHING. It just looks different now. How does this get released?

Revision history for this message
Bernie (bernie-rihn) wrote :

also unable to add bookmarks...... attempting to drag something on actually made it start working (I was then able to add a bookmark through the menu) though it didn't add the one that i dragged on.

Revision history for this message
Rocko (rockorequin) wrote :

Yes, it's damn-near impossible to add the first bookmark. I reset my user settings recently and it was enormous trouble adding the first bookmark (I did it somehow by drag and drop as well).

Revision history for this message
Sebastien Bacher (seb128) wrote :

is the issue limited to the first bookmark? seems similar to bug #920691

Revision history for this message
Thibaut Brandscheid (k1au3-is-37) wrote :

bug is still pressent in precise. neighter by drag & drop nor by using the CTRL+D shortcut nor the menu item it is possible to add a bookmark to nautilus.

Revision history for this message
Rocko (rockorequin) wrote :

@Sebastian: yes, #920691 might be the same issue. (Although it is possible in Oneiric to actually create the first bookmark, it's just unbelievably hard to do so.)

@Thibaut: I agree this bug is still present in Precise. In fact, I can't even see a Bookmarks section in nautilus in Precise! So there's nowhere to drag and drop the folder to. And 'Add Bookmark' from the menu does nothing.

I also tried removing a bookmark in Precise ('Pictures') using 'Edit Bookmarks' but that doesn't work either.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Rocko, could you run nautilus --quit; nautilus and see if any error is printed while trying to add or remove a bookmark? are you sure the permissions on .gtk-bookmarks are correct?

Revision history for this message
Sebastien Bacher (seb128) wrote :

Just tried on precise in a guest session, adding a bookmark with the menu item or ctrl-d works without issue, deleting one in the bookmark editor as well

Revision history for this message
Rocko (rockorequin) wrote :

I tried this on my VM, and no errors are printed when I try to add a bookmark, either with drag and drop or via the menu. And the perms on that file are:

-rw-rw-r-- 1 rocko rocko 128 Mar 2 07:35 .gtk-bookmarks

I do get an error when starting nautilus, but it looks like an unrelated samba issue:

Initializing nautilus-gdu extension
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.

I also upgraded my main machine to precise, ie with a user account that already has bookmarks, and bookmarks work correctly. But when I try a new user where no bookmarks are defined, I can't add the first bookmark. So the problem seems to be when adding the first bookmark.

Revision history for this message
Rocko (rockorequin) wrote :

@Sebastien: When you tried adding a bookmark in a guest session, did nautilus already display a Bookmarks section on the left side? Where did you drag the bookmark to? I only see 'Computer' and 'Network' sections on the left. Dragging to the entries in 'Computer' just tries to move the folder I'm dragging to the folder I drop it in, eg if I drop it in 'Rubbish Bin' it goes the to the trash. Dragging it to 'Browse Network' says 'There was an error created the folder X'. Dragging it to an unmarked section (ie just blank space on the left tab) doesn't do anything at all.

Does pressing Ctrl-D add a bookmark? For me it doesn't do anything anywhere, even in the login where I have already-existing bookmarks, ie where I can otherwise add and remove bookmarks normally.

Revision history for this message
Rocko (rockorequin) wrote :

Here's a screen video showing me trying unsuccessfully to add a bookmark via drag'n'drop and also via the bookmark menu.

Note that in the (other) user account where I already have a bookmarks section and where adding bookmarks works, I get a horizontal black line displayed in the left-hand section when I drag a folder over it. The line moves between other bookmarks as feedback to indicate where the bookmark will be added when I release the button. There is no such line displayed here.

This machine in the video is one that I created in VirtualBox by installing from scratch.

(I know that in the video nautilus is displaying 'Rubbish Bin' as its title, but that a separate bug, since I'm clearly working in the home folder, and because this bug happens even if nautilus is displaying 'Home Folder' as its title.)

Revision history for this message
Sebastien Bacher (seb128) wrote :

Rocko: no, the guest session didn't have a bookmark section so I didn't try to dnd since there is nowhere to drag to, using the menu item "add bookmark" or doing ctrl-D in a directory add the current directory though (you have to go in a directory not listed in the default locations, I tried "exemple")

Revision history for this message
Sebastien Bacher (seb128) wrote :

Looking to your video it doesn't seem to be a bug, you don't have a bookmark section so there is no place to dnd to and you try to bookmark your user dir which is already listed and selected in the sidepane...

Revision history for this message
Rocko (rockorequin) wrote :

If your guest session has no Bookmark section, and a new user created upon installation is created without a Bookmark section by default, so it therefore impossible to add a bookmark via drag and drop for new users. This is a pity but if there is a working menu option to do it, it's not so serious. It is, however, a regression from Oneiric where I could add a bookmark via drag and drop (it is just very, very hard to do so).

But more importantly, do you notice in my video that I tried the Add Bookmark menu option and it didn't work? That is definitely a bug.

Revision history for this message
Rocko (rockorequin) wrote :

Also, look more closely at the video - I'm not trying to bookmark my user dir, I'm trying to bookmark a folder called 'Untitled Folder', which is not already in the bookmarks.

Revision history for this message
Sebastien Bacher (seb128) wrote :

That's not how "add bookmark" works, it doesn't add the selected directory but the one you are in, that's an usability issue but different from the bug you reported there, I think your title is misleading, your bug is those bugs:

- no way to add bookmarks by dnd by defaumt
- the add bookmark behaviour is confusing, it should add the selected folder (maybe?)
- you mentioned before deleting a bookmark not working, that's yet another bug...

Revision history for this message
Rocko (rockorequin) wrote :

Ah! Now I understand, and I agree completely with your summary.

For me, it is not at all obvious that you have to actually be in the folder you are trying to bookmark with the menu "Add Bookmark" option, because normally I select a folder with the mouse and use dnd, so (naturally?) I expected the menu option to work on the currently selected folder. So yes, the behaviour of the menu option is confusing.

Perhaps if the menu text were changed to "Bookmark Current Folder" or "Add Bookmark For Current Folder" it would be clearer and it could still retain its existing functionality.

tags: added: precise
Revision history for this message
burli (mb-embedit) wrote :

Can't add bookmarks in current version of Precise, if the bookmark list is empty. If there is a bookmark (like automatically created by Ubuntu One) I _can_ add bookmarks by drag'n'drop

Revision history for this message
Rocko (rockorequin) wrote :

@burli: yes, it's true that you cannot add a bookmark if there are no bookmarks already. You can only add the first bookmark if you change into the folder that you want to bookmark (don't just select the folder, you have to double-click on it to open it) and then choose the Bookmarks / Add Bookmark menu option (as Sebastien describes in comment #24).

Revision history for this message
burli (mb-embedit) wrote :

@Rocko: thx. Missed that

Revision history for this message
arne (ubuntu-stukjewebgebeuren) wrote :

DnD folders the bookmarks section doesn't work for me either in 12.04. I do have some bookmarks present already. No errors in .xsession-errors

> @ Rocko (rockorequin) wrote on 2012-03-03:
> For me, it is not at all obvious that you have to actually be in the folder you are trying to bookmark
> with the menu "Add Bookmark" option, because normally I select a folder with the mouse and use
> dnd, so (naturally?) I expected the menu option to work on the currently selected folder. So yes,
> the behaviour of the menu option is confusing.

Not sure if this is the recommended place to do so, but I would like to add that that bookmarking behaviour was not at all obvioius to me either. I kept wondering why my Home dir kept being added to the bookmarks, instead of the selected folder IN my home dir that I tried adding to bookmarks...

Revision history for this message
ccarlos (carlospersonal) wrote :

dear arne

i have the some problem

this works form me

1. open "Edit Bookmarks"
2. Rename one of the markers
3. magically add a new rename marker and no erase the old one.

Please, sorry form my english like "tarzan"

Carlos

Changed in nautilus:
status: Confirmed → Expired
Revision history for this message
gluca (gianluca-carlesso) wrote :

Hi!
i have the some problem.

Ubuntu 12.10
Nautilus: 3.4.2

Thanks.

Revision history for this message
Joel Hermanns (joel-hermanns) wrote :

Hi!
Editing the file ~/.gtk-bookmarks worked for me.

Revision history for this message
Thomas (tom-rosary) wrote :

same problem in
Ubuntu 12.04.2
Nautilus 3.4.2

#32 jepp did the same but that doesn't fix the drag & drop bug

Revision history for this message
Sebastien Bacher (seb128) wrote :

Is anyone still having that issue in newer Ubuntu versions?

Changed in nautilus (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Paul White (paulw2u) wrote :

Bug report did not expire due to bug watch and assignment
Upstream report showing "RESOLVED OBSOLETE" on 2012-10-22
due to various recent fixes being applied
No reply to comment #34
Last report was nearly 8 years ago so closing as fixed

Changed in nautilus (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.