Removable media icon stays on the dock after eject.

Bug #1856032 reported by Clinton H
54
This bug affects 8 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
New
Low
Unassigned
gnome-shell-extension-ubuntu-dock (Ubuntu)
Fix Released
Low
Marco Trevisan (Treviño)
Impish
Confirmed
Low
Marco Trevisan (Treviño)

Bug Description

1) Ubuntu 19.10
2) Dock
3) I placed a DVD in the optical drive. An optical disc with a DVD tag appeared on the dock. I pressed the button on the optical drive to open it. I removed the disc and pressed in the tray. The icon should have disappeared from the dock.
4) The icon did NOT disappear from the dock.

Clinton H (49studebaker)
summary: - DVD icon not disappearing from dash.
+ DVD icon did not disappear from dash.
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: DVD icon did not disappear from dash.

I wonder if this is because the mount still exists. Please reproduce the bug and while you're still seeing the icon run:

  mount > mounts.txt

and send us the file 'mounts.txt'.

tags: added: eoan
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: New → Incomplete
Revision history for this message
Clinton H (49studebaker) wrote :

I restarted Ubuntu and the icon disappeared.

1) I put a DVD in the optical drive.
2) Ubuntu detected the DVD and displayed the DVD icon on the dash.
3) I pressed the eject button on the optical drive and the disc was ejected. I pushed in the tray.
4) I opened the terminal and typed the command you suggested.

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

Confirmed from a 19.10 usb stick on a computer with a CD drive, 'gio mount -o' shows the mount&device are removed and nautilus correctly refresh, the launcher doesn't though

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
importance: Undecided → Low
status: Incomplete → Confirmed
tags: added: lts-desktop-wishlist
tags: added: desktop-lts-wishlist
removed: lts-desktop-wishlist
Revision history for this message
Douglas Silva (o-alquimista) wrote :

I can reproduce this problem with a USB stick as well. I suggest changing the title to "Removable media icon stays on the dock after eject".

To reproduce, I've inserted my USB stick used to install Ubuntu, automounting it; Two items appeared, one that says "Ubuntu 19.10..." and another saying "casper...", then I ejected it with the command `sudo eject /dev/sdx`. The icon saying "Ubuntu 19.10..." is still there. The other is gone.

Clinton H (49studebaker)
summary: - DVD icon did not disappear from dash.
+ Removable media icon stays on the dock after eject.
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Tested on Ubuntu desktop 20.04.1 all up to date on kernel 5.4.0-45-generic

i can reproduce this, after nautilus unmount the cd/dvd icon remains on the dock

tags: added: focal
removed: eoan
Revision history for this message
Tudor Holton (tudor) wrote :

I can confirm that this still occurs on 20.10. Is there a workaround to remove the icon from the dash after ejecting?

tags: added: groovy
Bin Li (binli)
tags: added: oem-priority originate-from-1928412 sutton
Revision history for this message
Sebastien Bacher (seb128) wrote :

@Bin, The oem bug describes the issue on the desktop and not launcher, could be the same underlining problem though

tags: added: rls-ii-incoming
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I don't think that's true. The original OEM bug also refers to the launcher, not the desktop:

"CD/DVD icon in Dock did not disappear"

Revision history for this message
Bin Li (binli) wrote :

@seb128,

 I doubt QA used the wrong name, from the screenshot, it should be in launcher. Thanks!

Rex Tsai (chihchun)
Changed in oem-priority:
importance: Undecided → Low
Iain Lane (laney)
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu Impish):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
tags: removed: rls-ii-incoming
Revision history for this message
Matthew Hales (hales) wrote :

Confirmed in 21.04.

@Tudor, Alt+F2 r will remove the icon from the launcher until this bug is squashed.

It appears that the icon permanence occurs when I eject using the physical button on the drive as opposed to right-clicking and selecting "Eject" or by running the eject command at the CLI, both of which successfully removed the CD icon.

I noticed this issue due an old game CD with redbook audio. When Ubuntu notices that disc, it actually produces two icons on the launcher, one is an audio CD, the other is the data disc. The Audio CD icon will not eject the disc when you right click and select that option. There appears to be no response. If you use the physical eject button on the drive, the audio CD icon will disappear but the data disc icon remains until a reset of the desktop with Alt+F2 r.

tags: added: hirsute
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

It seems it can't be verified with anything else that isn't a CD/DVD, I tried to emulate it using vmware/virtualbox but no luck so far (at least on 21.10 with GNOME 40).

In the same scenario nautilus updates the icon properly right?
Also, nothing from the journal mentions the dock, right?

Revision history for this message
Bin Li (binli) wrote :

@Marco,

 On 20.04, In the same scenario nautilus updates the icon properly right. I attached the screenshot at lp:1929021 . Thanks!

 https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-ubuntu-dock/+bug/1929021/+attachment/5498884/+files/ODD.jpg

tags: added: dt-195
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

This should be fixed by gnome-shell-extension-ubuntu-dock 72~ubuntu1, please re-open if it's not the case.

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Confirmed → 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

Bug attachments

Remote bug watches

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