Editing dom0 files

I’ve been using “https://www.qubes-os.org/doc/app-menu-shortcut-troubleshooting/” to create a shortcut to a single app qube. The text instruction set is outlined below:

"If you only want to create a shortcut for a single app qube, you can create a custom menu entry instead:

  1. Open a terminal window to Dom0.
  2. Create a custom .desktop file in ~/.local/share/applications. Look in the same directory for existing examples, or see the full file specification. You may use qvm-run inside the .desktop file; see Behind the scenes for more details.
  3. Edit the ~/.config/menus/applications-merged/<vmname>-vm.menu file for the app qube.
  4. Add a custom menu entry referring to your newly created .desktop file.
Webmail custom.desktop

So I have created a custom desktop file in “`/.local/share/applications”. Then
on to editing the /.config/menus/applications-merged/-vm.menu”.

As soon as I open the file in nano to edit, the header says do not manually edit - manually-generated and managed by xtg-desktop-menu.

So now what do I do? Any suggestions would be welcome.`

Just edit it.
Back it up first.

I have scripts that alter my files every time a guest starts or stops.

I never run that xtg-desktop-menu program anyway, so it doesn’t bother me.

If you want to add things to the menu, you can add the items to the folder, then run the xtg-desktop-menu application and rebuild the menu structure with that application.