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 514135 - empty CD-ROM Drive doesn't do anything when clicked
empty CD-ROM Drive doesn't do anything when clicked
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] GIO
2.21.x
Other Linux
: Normal normal
: 2.22.x
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-02-03 18:45 UTC by Sebastien Bacher
Modified: 2008-02-29 00:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
patch for gvfs (2.56 KB, patch)
2008-02-14 17:43 UTC, Cosimo Cecchi
none Details | Review
patch for nautilus (584 bytes, patch)
2008-02-14 17:45 UTC, Cosimo Cecchi
committed Details | Review
patch for gvfs v2 (2.73 KB, patch)
2008-02-14 19:18 UTC, Cosimo Cecchi
none Details | Review
patch for gvfs v3 (4.14 KB, patch)
2008-02-27 15:21 UTC, Cosimo Cecchi
committed Details | Review

Description Sebastien Bacher 2008-02-03 18:45:58 UTC
The bug has been described on https://bugs.launchpad.net/bugs/188256

"The Computer 'bookmark' has icons called CD-ROM Drive for CD-ROM Drives. If you click on the icon when the drive is empty nothing happens. This is confusing.

It should say empty CD-ROM Drive, or have a pop up saying that there is no media. To do nothing at all seems weird.

nautilus 1:2.21.90-0ubuntu1"
Comment 1 Cosimo Cecchi 2008-02-12 19:02:10 UTC
Confirming.
Comment 2 Cosimo Cecchi 2008-02-14 17:43:55 UTC
Created attachment 105262 [details] [review]
patch for gvfs

GVfs part of the patch, implement poll media.
Comment 3 Cosimo Cecchi 2008-02-14 17:45:23 UTC
Created attachment 105264 [details] [review]
patch for nautilus

I don't know if this is correct...this prevented showing up of dialogs if something went wrong with the mount...maybe it was just a typo.
Comment 4 Cosimo Cecchi 2008-02-14 19:18:14 UTC
Created attachment 105271 [details] [review]
patch for gvfs v2

Better patch for gvfs, does not always poll the drive.
Comment 5 Alexander Larsson 2008-02-15 09:01:12 UTC
The nautilus patch isn't quite right
We do want to report errors for != G_IO_ERROR, i think it was supposed to be

if (error->domain != G_IO_ERROR ||
    (error->code != G_IO_ERROR_CANCELLED &&
     error->code != G_IO_ERROR_ALREADY_MOUNTED)) {

i.e. report error unless its cancelled or already mounted.

I'm fixing this.
Comment 6 Alexander Larsson 2008-02-15 09:05:41 UTC
The gvfs patch doesn't seem quite right either. You can't only report failures, if you don't you have to report success, or the operation will hang.
Comment 7 Cosimo Cecchi 2008-02-27 15:21:45 UTC
Created attachment 106081 [details] [review]
patch for gvfs v3

Revamped patch...I'm sending a mail to i18n to have their opinion for this, as committing it now would break (again) string freeze for GVfs.
Comment 8 Cosimo Cecchi 2008-02-27 19:55:20 UTC
i18n team has approved the freeze break request.
Comment 9 Alexander Larsson 2008-02-28 15:35:44 UTC
Please commit then!
Comment 10 Cosimo Cecchi 2008-02-29 00:43:46 UTC
Committed, closing.

2008-02-29  Cosimo Cecchi  <cosimoc@gnome.org>

	* daemon/gvfsbackendcomputer.c: (recompute_files),
	(mount_volume_from_drive), (report_no_media_error),
	(poll_for_media_cb), (try_mount_mountable):
	Implement media polling for Computer backend, handling the case when
	no media is in the drive. Also adds a new string. (#514135)