qubes-issues icon indicating copy to clipboard operation
qubes-issues copied to clipboard

Disabling 'Provides network' for sys-usb confusingly changes menu item prefix and icon.

Open quantumpacket opened this issue 4 years ago • 10 comments

Qubes OS release

4.1.0

Brief summary

I have sys-usb (minimal version), but I have no intention of setting it as "Provides network" as it does not have networking enabled nor needs to. However, when I uncheck that option, now the menu item for it changes from Service: sys-usb to Qube: sys-usb, which is confusing. In addition, the icon also changes. This may be related to changes made in #6707.

Steps to reproduce

Uncheck "Provides network" for sys-usb.

Expected behavior

Menu item and icon remains Service: sys-usb.

Actual behavior

Menu item and icon changes to Qube: sys-usb.

quantumpacket avatar Feb 22 '22 18:02 quantumpacket

While this should be addressed (as unchecking "Provides network" shouldn't be a hard dependency for the vm to be considered a "Service", since there are multiple kind of services), you can make the sys-usb qube to act as service again issuing this cmd in dom0

qvm-features sys-usb servicevm 1

Changes were picked instantly after restarting Qubes Manager, however for appmenu, I had to edit the name & icon manually under ~/.local/share/desktop-directories/qubes-vm-directory-sys-usb.directory

Name=Service: sys-usb
Icon=servicevm-red

then restart the panel with xfce4-panel -r

Hopefully there's a command to do this 2nd part automatically with a toggle, but I didn't find it yet.

ejose19 avatar Feb 22 '22 22:02 ejose19

I've done the above workaround for the issue, but the icon in the Qubes Manager tray menu does not change, and all other icon changes do not persist (menu and Qubes Manager main window). They eventually end up reverting back to the wrong icons. It appears the menu prefix does persist, for now.

quantumpacket avatar Apr 19 '22 16:04 quantumpacket

It seems like a bug that sys-usb has Provides network enabled by default in the first place on systems with no networking devices in sys-usb. Opened #7669 for that.

andrewdavidwong avatar Jul 31 '22 02:07 andrewdavidwong

Affects 4.2

UndeadDevel avatar Apr 01 '24 19:04 UndeadDevel