Accessing available applications from CLI?

25 views
Skip to first unread message

Johannes Graumann

unread,
May 12, 2017, 2:39:48 AM5/12/17
to qubes-users
Hi,

Is there a way to use the CLI to

1) access what apps a VM has available

and

2) which of them should be shown in the menue?

Sincerely, Joh

Johannes Graumann

unread,
May 16, 2017, 9:04:30 AM5/16/17
to qubes-users
No insight, anybody?

Sincerely, Joh

Patrik Hagara

unread,
May 16, 2017, 9:26:46 AM5/16/17
to qubes-users, nons...@graumannschaft.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Fri, 2017-05-12 at 08:39 +0200, Johannes Graumann wrote:
> Is there a way to use the CLI to
>
> 1) access what apps a VM has available

You can find the .desktop files for all available
programs here:

/var/lib/qubes/vm-templates/<templatename>/apps.templates/

> 2) which of them should be shown in the menue?

And when you enable a particular app in an AppVM, the
.desktop file template is copied over to

/var/lib/qubes/appvms/<vmname>/apps/

and all instances of %VMNAME% from the template's
.desktop file get replaced by the AppVM's name.

Sadly, I am not aware of any "proper" Qubes CLI tool
to facilitate the above steps. You can, however,
launch the GUI version of app selector -- it's called
`qubes-vm-settings`, and optionally takes a VM name
and the settings tab name as arguments, eg:

qubes-vm-settings personal applications


HTH
- -- Patrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZGv3sAAoJEFwecd8DH5rl/asQAIFw77Bwcn2K6Wj09lDEXbaW
IhyZ1+J8Sw7kdeYmdeXfHIYijyrc9wIYdSjhCqiyrNw65uZ6RuW78dp/x26t3uMj
8krSDHX0AA8Bykj2wBZ+SjEGQUPXSZEiIE+MZiydRbzv7elSrpepSprdujur9oWe
/MRqLaNjI8OHvVWfWJ3r0arIecPvqzAtjx+N72WAGMWNTjwWp0AmaHbicoFeNM+N
sTb6Ej464jNfA52fTGnEhrxXzAI1xG0FbQ7JB9YAy6zT07/ELRmHSic4t/S+gGFc
b8YBx87TucJRNoVwUUoTMN3IrVlgOotDMn0ABXEPK0c4urbMHvjCr29ucYmLY4o7
mWKtH7cmMaT6sCeDQlitLn1CC/b7coq0zAKe/bzBL1wKAEwj1C5AfP/jdgqd89D7
//Z1evBctlxoez18gtjhgBqv5sRtnCG6tm1YyiPdi/ZFxyvvnkiv07KyQz/oUYBn
KnJ7R0kYXa2BMTJV3PaNRX6uLTVxqtybCdcZJxTuQHu7XIRVm+Dgir8wtrfXdwt0
Zb4N8xnHAGQg+wfkz4045ooOKsfNU1M5UcO2zfCiMallGzqpB1Bkv4UMv22Kkb8Y
NguSy2rfFnVr0qtRGHIYt07OH/O3eps31eBaLfDM5kcyhlK11h3UGXkzEnwVJBZI
PoLqXt6gqZJEK4naAFnB
=lqg8
-----END PGP SIGNATURE-----

Johannes Graumann

unread,
May 16, 2017, 10:08:16 AM5/16/17
to Patrik Hagara, qubes-users

On Tue, 2017-05-16 at 06:26 -0700, Patrik Hagara wrote:
> On Fri, 2017-05-12 at 08:39 +0200, Johannes Graumann wrote:
> > Is there a way to use the CLI to
> >
> > 1) access what apps a VM has available
>
> You can find the .desktop files for all available
> programs here:
>
> /var/lib/qubes/vm-templates/<templatename>/apps.templates/
>
> > 2) which of them should be shown in the menue?
>
> And when you enable a particular app in an AppVM, the
> .desktop file template is copied over to
>
> /var/lib/qubes/appvms/<vmname>/apps/
>
> and all instances of %VMNAME% from the template's
> .desktop file get replaced by the AppVM's name.
>
> Sadly, I am not aware of any "proper" Qubes CLI tool
> to facilitate the above steps. You can, however,
> launch the GUI version of app selector -- it's called
> `qubes-vm-settings`, and optionally takes a VM name
> and the settings tab name as arguments, eg:
>
> qubes-vm-settings personal applications

Thank you for your insight. I was hoping for more comfortable CLI
tools, as I am managing my entire setup using ansible ... I shall go
and investigate the files you point out.

Sincerely, Joh
Reply all
Reply to author
Forward
0 new messages