VirtualBox

Ticket #18705 (new defect)

Opened 2 years ago

Last modified 7 months ago

Icon error

Reported by: betoherrera82 Owned by:
Component: GUI Version: VirtualBox 6.0.8
Keywords: Launcher icon Cc:
Guest type: Linux Host type: Linux

Description

i am using ubuntu as host and when i launch some virtual machine, the icon does not appears. It looks like a lost item.

Attachments

error_vm_icon.png Download (3.1 KB) - added by betoherrera82 2 years ago.
Icon in ubuntu dock of a running virtual machine
screenshot_ubuntu_dock.png Download (44.9 KB) - added by linuxbastler 8 months ago.
Screenshot from 2020-11-17 15-16-05.png Download (25.9 KB) - added by gusman21 7 months ago.
Original launch
Screenshot from 2020-11-17 15-16-22.png Download (28.7 KB) - added by gusman21 7 months ago.
swap workspaces

Change History

Changed 2 years ago by betoherrera82

Icon in ubuntu dock of a running virtual machine

comment:1 Changed 2 years ago by betoherrera82

The icon of a running virtual machine on the host dock (ubuntu) is lost or unavailable.

comment:2 Changed 2 years ago by dpint

I am also encountering this bug on Ubuntu 19.04. It seem that it has been introduced in version 6.0.0 when VM handling has been transferred to VirtualBoxVM application. This application dynamically changes icon based on the OS type running in the guest VM, but it seems that this change isn't detected by GNOME.

Correct icon appears in the ALT-TAB menu. Also if you move window to another workspace, correct icon appears in the Dock.

One solution, although not perfect, is adding custom desktop shortcut. Easiest solution is just making a copy of /usr/share/applications/virtualbox.desktop and changing Name entry to VirtualBoxVM. Doing this shows ordinary VirtualBox icon instead of a red one.

comment:3 Changed 13 months ago by fcastillo

This is not a bug of Virtualbox. If you disable "ubuntu-dock" or "dash-to-dock", the problem is gone. You'll be able to see all the appropriate icons at all times.

Changed 8 months ago by linuxbastler

comment:4 Changed 8 months ago by linuxbastler

I use Ubuntu 20.10 as host and Windows XP and Ubuntu 14.04 as guest. When I start the guests, the icons of the running machines are empty and blank.

When I restart gnome shell with Alt+F2+r the icons of the running machines appear as expected. See attached screenshot before and after Alt+F2+r. See also that the tooltip changes from "VirtualBoxVM" to "VirtualBox Machine"

So it seems, gnome does not detect the icons always the right way. My knowledge with gnome is, for icons in the dock or on the desktop there have to be files named "someapplication.desktop" in folder /home/$USER/.local/share/applications/

Does virtualbox use this mechanism? Where are the icons for my running boxes and the changed tooltips after the restart come from?

comment:5 Changed 7 months ago by janitor

When you are in a state where the icon is missing, what happens if you let the screensaver kick in, or lock and unlock the screen?

comment:6 Changed 7 months ago by Mario_Vilas

A workaround is to switch to fullscreen mode and then back to windowed mode.

 https://askubuntu.com/questions/1196531/virtualbox-on-ubuntu-19-10-shows-no-vm-icon-in-dock/1280732#1280732

By they way, I'd like to point out that saying "if you disable this and that the problem is gone" is akin to saying if you switch to another window manager the problem is gone, which is not a solution at all but a cop out. ¯\_(ツ)_/¯

comment:7 Changed 7 months ago by linuxbastler

screensaver and lock+unlock screen do not bring back the missing icon

comment:8 Changed 7 months ago by gusman21

Same issue in Linux Mint 20 Ulyana with Cinnamon 4.6.7. Original VM launch has invalid icon. Icons are corrected upon moving from one workspace to another.

Changed 7 months ago by gusman21

Original launch

Changed 7 months ago by gusman21

swap workspaces

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use