mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-05-02 14:56:13 -04:00
Mass replace "AppVM" and "TemplateBasedVM" with "app qube"
QubesOS/qubes-issues#1015
This commit is contained in:
parent
719836c9f3
commit
aea595397f
28 changed files with 111 additions and 111 deletions
|
@ -11,8 +11,8 @@ ref: 202
|
|||
title: App Menu Shortcut Troubleshooting
|
||||
---
|
||||
|
||||
For ease of use Qubes aggregates shortcuts to applications that are installed in AppVMs and shows them in one application menu (aka "app menu" or "start menu") in dom0.
|
||||
Clicking on such shortcut runs the assigned application in its AppVM.
|
||||
For ease of use Qubes aggregates shortcuts to applications that are installed in app qubes and shows them in one application menu (aka "app menu" or "start menu") in dom0.
|
||||
Clicking on such shortcut runs the assigned application in its app qube.
|
||||
|
||||

|
||||
|
||||
|
@ -32,7 +32,7 @@ What if my application has not been automatically included in the list of availa
|
|||
Some times applications may not have included a `.desktop` file and may not be detected by `qvm-sync-appmenus`.
|
||||
Other times, you may want to make a web shortcut available from the Qubes start menu.
|
||||
|
||||
You can manually create new entries in the "available applications" list of shortcuts for all AppVMs based on a TemplateVM.
|
||||
You can manually create new entries in the "available applications" list of shortcuts for all app qubes based on a TemplateVM.
|
||||
To do this:
|
||||
|
||||
1. Open a terminal window to the TemplateVM.
|
||||
|
@ -54,16 +54,16 @@ To do this:
|
|||
```
|
||||
|
||||
3. In dom0, run `qvm-sync-appmenus <TemplateVMName>`.
|
||||
4. Go to VM Settings of the AppVM(s) to which you want to add the new shortcut, then the Applications tab.
|
||||
4. Go to VM Settings of the app qube(s) to which you want to add the new shortcut, then the Applications tab.
|
||||
Move the newly created shortcut to the right under selected.
|
||||
|
||||
If you only want to create a shortcut for a single AppVM, you can create a custom menu entry instead:
|
||||
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](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html).
|
||||
You may use `qvm-run` inside the `.desktop` file; see [Behind the scenes](/doc/app-menu-shortcut-troubleshooting/#behind-the-scenes) for more details.
|
||||
3. Edit the `~/.config/menus/applications-merged/<vmname>-vm.menu` file for the AppVM.
|
||||
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.
|
||||
|
||||
~~~
|
||||
|
@ -102,16 +102,16 @@ Behind the scenes
|
|||
-----------------
|
||||
|
||||
`qvm-sync-appmenus` works by invoking *GetAppMenus* [Qubes service](/doc/qrexec/) in the target domain.
|
||||
This service enumerates installed applications and sends formatted info back to the dom0 script (`/usr/libexec/qubes-appmenus/qubes-receive-appmenus`) which creates .desktop files in the AppVM/TemplateVM directory.
|
||||
This service enumerates installed applications and sends formatted info back to the dom0 script (`/usr/libexec/qubes-appmenus/qubes-receive-appmenus`) which creates .desktop files in the app qube/TemplateVM directory.
|
||||
|
||||
For Linux VMs the service script is in `/etc/qubes-rpc/qubes.GetAppMenus`.
|
||||
In Windows it's a PowerShell script located in `c:\Program Files\Invisible Things Lab\Qubes OS Windows Tools\qubes-rpc-services\get-appmenus.ps1` by default.
|
||||
|
||||
The list of installed applications for each AppVM is stored in dom0's `~/.local/share/qubes-appmenus/<vmname>/apps.templates`.
|
||||
The list of installed applications for each app qube is stored in dom0's `~/.local/share/qubes-appmenus/<vmname>/apps.templates`.
|
||||
Each menu entry is a file that follows the [.desktop file format](https://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html) with some wildcards (*%VMNAME%*, *%VMDIR%*).
|
||||
Applications selected to appear in the menu are stored in `~/.local/share/qubes-appmenus/<vmname>/apps`.
|
||||
|
||||
Actual command lines for the menu shortcuts involve `qvm-run` command which starts a process in another domain.
|
||||
Examples: `qvm-run -q -a --service -- %VMNAME% qubes.StartApp+7-Zip-7-Zip_File_Manager` or `qvm-run -q -a --service -- %VMNAME% qubes.StartApp+firefox`
|
||||
|
||||
Note that you can create a shortcut that points to a .desktop file in your AppVM with e.g. `qvm-run -q -a --service -- personal qubes.StartApp+firefox`.
|
||||
Note that you can create a shortcut that points to a .desktop file in your app qube with e.g. `qvm-run -q -a --service -- personal qubes.StartApp+firefox`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue