-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wed, Sep 07, 2016 at 11:38:55PM +0100, IX4 Svs wrote:
> On Thu, Sep 1, 2016 at 8:41 AM, IX4 Svs <ix4...@gmail.com> wrote:
> 
> > On Thu, Sep 1, 2016 at 2:21 AM, Andrew David Wong <a...@qubes-os.org>
> > wrote:
> >
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA512
> >>
> >> On 2016-08-31 15:50, IX4 Svs wrote:
> >> > On Wed, Aug 24, 2016 at 11:10 PM, Andrew David Wong <a...@qubes-os.org>
> >> > wrote:
> >> >
> >> >>
> >> >> On 2016-08-15 14:43, IX4 Svs wrote:
> >> >>> On Mon, Aug 15, 2016 at 10:19 AM, Andrew David Wong <a...@qubes-os.org
> >> >
> >> >>> wrote:
> >> >>>
> >> >>>>
> >> >>>> On 2016-08-14 15:22, IX4 Svs wrote:
> >> >>>>> Just spent a few minutes to figure this out so I thought I'd
> >> >>>>> share.
> >> >>>>>
> >> >>>>
> >> >>>> Thanks, Alex! Would you mind if we added this to the docs at some
> >> >>>> point?
> >> >>>>
> >> >>>>
> >> >>> Not at all - especially if you improve my clumsy way of creating the
> >> >> custom
> >> >>> shortcut (steps 7-12) and use the proper Qubes way that Nicklaus
> >> >>> linked to.
> >> >>>
> >> >>> Cheers,
> >> >>>
> >> >>> Alex
> >> >>>
> >> >>
> >> >> Added:
> >> >>
> >> >> https://www.qubes-os.org/doc/signal/
> >> >>
> >> >>
> >> > Andrew, thanks for adding this to the documentation.
> >> >
> >> > I'm afraid my DIY shortcut kludge does not survive some(potentially boot
> >> > time) script and is wiped away from the taskbar, only to be replaced by
> >> a
> >> > default "Chrome browser" shortcut. I admit I don't quite comprehend what
> >> > the actual implementation of
> >> > https://www.qubes-os.org/doc/managing-appvm-shortcuts/#tocAnchor-1-1-1
> >> > should be.
> >>
> >> Neither do I. I've always make my custom shortcuts the same general way
> >> you do.
> >>
> >>
> > Ah, we have a usability issue here then.
> >
> >
> >> > A worked example that replaces all but the first step of the " Creating
> >> a
> >> > Shortcut in KDE" section of https://www.qubes-os.org/doc/signal/ would
> >> be
> >> > very much welcome.
> >> >
> >>
> >> Agreed.
> >>
> >
> > Can someone who has figured out how to create one-click buttons to launch
> > arbitrary applications in AppVMs chime in with an example please? I'll then
> > test it and Andrew can stick it in the wiki for all Qubes users to benefit.
> >
> 
> I had a look myself and may have figured out the "proper" way of creating a
> shortcut to launch Signal. By the way I submitted a pull request for the
> documentation at https://www.qubes-os.org/doc/m
> anaging-appvm-shortcuts/#tocAnchor-1-1-1 because its language is slightly
> inaccurate.
> 
> These instructions (after verification) should replace the shortcut kludge
> of the signal page you created:
> 
> My Signal AppVM uses the fedora-23 template, and I have renamed the
> .desktop file that Chrome created on that AppVM's desktop to
> signal.desktop. Now what?
> 
> 1. Open a dom0 terminal, cd to /var/lib/qubes/vm-templates/fedora-23/
> 2. Copy Signal:/home/user/Desktop/signal.desktop to
> dom0:/var/lib/qubes/vm-templates/fedora-23/apps.templates/signal.desktop
> 3. Lightly edit
> dom0:/var/lib/qubes/vm-templates/fedora-23/apps.templates/signal.desktop to
> be as follows:
> 
> [Desktop Entry]
> Version=1.0
> Type=Application
> Terminal=false
> X-Qubes-VmName=%VMNAME%
> Icon=%VMDIR%/apps.icons/signal.png
> Name=%VMNAME%: Signal Private Messenger
> GenericName=%VMNAME%: Signal
> Comment=Private Instant Messenger
> Exec=qvm-run -q --tray -a %VMNAME% -- 'qubes-desktop-run
> /home/user/Desktop/Signal.desktop'
> 
> 4. Copy
> Signal:/rw/home/user/.local/share/icons/hicolor/48x48/apps/chrome-<long_string>-Default.png
>  to
> dom0:/var/lib/qubes/vm-templates/fedora-23/apps.templates/apps.icons/signal.png
> 
> 5. Copy
> dom0:/var/lib/qubes/vm-templates/fedora-23/apps.templates/apps.icons/signal.png
> to
> dom0:/var/lib/qubes/vm-templates/fedora-23/apps.templates/apps.tempicons/signal.png
> 
> 6. At this point you should be all set. Ensure Qubes knows about the new
> menu item you created by starting the fedora-23 template VM and then
> running in a dom0 terminal: qvm-sync-appmenus fedora-23
> 
> 7. You should now be able to go back to the GUI and from the Q menu: Q ->
> Domain: Signal -> Signal: Add more shortcuts...
> In the window that will appear, you should now have "Signal Private
> Messenger" on the left list of available apps. I moved this to the
> "Selected" list and hit OK, which put the entry in my Q menu.
> 
> 8. Then I went to Q -> Domain: Signal. I right-clicked on "Signal:Signal
> Private Messenger" and selected "Add to panel".
> 
> 9. Success! I now have a button in my KDE panel with which I can launch
> Signal with one click.
> 
> Hope these steps get documented in the wiki (I'm not attempting a direct
> edit lest I break something) and are helpful to people.

Content of /var/lib/qubes/vm-templates/fedora-23/apps.templates (and
other apps.* there) is generated based on /usr/share/applications and
/usr/local/share/applications in the VM. This include removing from dom0
files not present in the VM.
So, instead of copying files manually to dom0, place them in one of
those directories (I suggest /usr/share/applications, as it is shared
with AppVMs), and then request synchronization to dom0:

    qvm-sync-appmenus fedora-23

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJX2Qm9AAoJENuP0xzK19csnwgIAIKQzRpdUzSD6ZNdGSYoBW+C
TgmdY5ktAm3ozpYKjNmhUYx6dRdfb+Taf4s2KVKWK15ANNtLyaAfGlxpr6AZeGBj
IsPFqs2G+YPiPCRl/qr23pY5hVobjmuZpi8qkREH6W6AfIfDiRJ71U8lSbagObU6
HJu/5MTREdsDpv7V6v/p60SItRWJl3EN/MIOU98S3QM2AaFbMk6xwDzNz+v5PfQH
VzVJXO98f+Y+8eR2DBUB79gaPr3HsgqLEtA5HdfU+0p6gh6M3KFVLE5zsnmk/Ki5
cbs3HiwLsXLRBDUPrTd1R/r5CZCRHJbgvQ+OwBQZ8kXH0HIebdk2O2AcO2AxCz8=
=9V9L
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20160914082637.GK31510%40mail-itl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to