Application menu lack VM entries in fresh GUI VM
Qubes OS version R4.1
Affected component(s) or functionality desktop-linux-common?
Brief summary After setting up GUI VM and assigning it to some qubes, the application menu inside that GUI VM does not include relevant qubes entries.
To Reproduce
Steps to reproduce the behavior:
_1. Create sys-gui using salt (qvm.sys-gui state)
_2. Make it default guivm (qubes-prefs default_guivm sys-gui), or at least assign to some qubes
_3. Start sys-gui
_4. Check applications menu there
Expected behavior Menu populated with entries for relevant qubes.
Actual behavior Only base entries present.
Screenshots here: https://openqa.qubes-os.org/tests/7967#step/simple_gui_apps/10
Additional context Populating menu in GUI VM is not necessary trivial. In current shape it requires:
- Starting each relevant template to extract installed applications info. This also means the GUI VM needs a permission to do that (not a problem in all-powerful GUI VM, but may be in more restricted setup).
- Start each AppVM (connected to this GUI VM) to extract installed applications info from user home.
- Obtain list of applications to actually include in the menu (default list for each template? migrate setting from dom0?)
Solutions you've tried
Calling qvm-sync-appmenus and qvm-appmenus manually in GUI VM.
Relevant documentation you've consulted A list of links to the Qubes documentation (or other relevant software documentation) pages you have already consulted.
Related, non-duplicate issues #833
PR that added support for --all flag: https://github.com/QubesOS/qubes-desktop-linux-common/pull/40
This issue is being closed because:
- This issue is believed to affect only Qubes OS 4.1 (and possibly earlier).
- Qubes OS 4.1 has reached end-of-life (EOL).
If anyone believes that this issue should be reopened, please leave a comment saying so. (For example, if a bug still affects Qubes OS 4.2, then the comment "Affects 4.2" will suffice.)
This was still an issue for me in r4.3-rc3 when installing the sys-gui-gpu. Worse, the app menu for the original user got reset as well. So after I removed sys-gui-gpu I had to regenerate them with
for q in $(qvm-ls --field NAME); do echo $q ; qvm-sync-appmenus --regenerate-only $q; done