Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation is unclear about how to configure a single AppVM application shortcut involving qvm-run and qubes.StartApp #3899
Comments
heinrich-ulbricht
changed the title from
How to configure a single AppVM application shortcut involving qvm-run and qubes.StartApp?
to
Documentation is unclear about how to configure a single AppVM application shortcut involving qvm-run and qubes.StartApp
May 15, 2018
andrewdavidwong
added
help wanted
C: doc
task
labels
May 16, 2018
andrewdavidwong
added this to the
Documentation/website milestone
May 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
heinrich-ulbricht
May 17, 2018
I found my answers in QubesOS/qubes-core-agent-linux@22e261f which added the service qubes.StartApp. To make my scenario work you have to do the following:
- create a .desktop file in the AppVM (in my case vault) in /home/user/.local/share/applications
- create the applications folder if it doesn't yet exist
- in a dom0 terminal create a .desktop file in ~/.local/share/applications as described in the docs
- the Exec value can now reference the .desktop file in the AppVM, e.g.:
Exec=qvm-run -q -a --service -- vault qubes.StartApp+keepass, where keepass is the name of the file created in step 1 (keepass.desktop) without its ending
- the Exec value can now reference the .desktop file in the AppVM, e.g.:
- still in dom0 terminal edit the user-<vm name>-vm.menu file in ~/.config/menus/applications-merged as described in the docs (but note the user- prefix that is missing in the docs)
- this warning in the file can apparently be ignored: Do not edit manually - generated and managed by xdg-desktop-menu ...
- these manual changes stay in this file also after calling
qvm-sync-appmenus fedora-26
The reason it didn't work in my case was completely unrelated to any of this. In my AppVM .desktop file I had errors in the Exec value. To test and debug this you can call qubes-desktop-run in the AppVM to invoke your .desktop file directly. This is what qubes.StartApp does under the hood.
heinrich-ulbricht
commented
May 17, 2018
|
I found my answers in QubesOS/qubes-core-agent-linux@22e261f which added the service qubes.StartApp. To make my scenario work you have to do the following:
The reason it didn't work in my case was completely unrelated to any of this. In my AppVM .desktop file I had errors in the Exec value. To test and debug this you can call |
heinrich-ulbricht commentedMay 15, 2018
•
edited
Edited 2 times
-
heinrich-ulbricht
edited May 15, 2018 (most recent)
-
heinrich-ulbricht
edited May 15, 2018
Qubes OS version:
R4.0
Affected component(s):
Documentation about shortcuts to AppVM applications (and some RPC service info)
Expected behavior:
I have an app saved to one AppVM home directory that is not automatically included in the list of available apps in this AppVM's menu - which is ok and expected. I now want to add a shortcut to this app by following the instructions of the official documentation.
Unfortunately, reading this documentation I was not able to achieve the following (but should be):
As a technical user with no Linux background I should be able to configure this. I'm sure I made mistakes on my way and I'd like to improve the documentation so that people like me can get it running :)
Actual behavior:
Here the section If you only want to create a shortcut for a single AppVM, you can create a custom menu entry instead describes, how to add an application as shortcut by doing things entirely in dom0 while referring to qvm-run in the Behind the scenes section which says I can refer to a .desktop file in my AppVM. But exactly how to do this was not entirely clear to me.
My questions about these instructions are:
~/.config/menus/applications-merged/<vmname>-vm.menuin dom0? It feels odd (for a newbie to the os) for several reasons:General notes:
With above questions clarified I can verify that my configuration is either wrong or correct and then file a technical issue if still necessary.
Any information or links to additional documentation I might not have been able to find are appreciated.