Re: [qubes-users] How to manage shortcuts to applications in DispVM?
Unman[2017-02-23 13:56 +0100]: > The "DisposableVM" entries in the xfce menus are sourced from > /etc/xdg/menus/applications-merged/qubes-dispvm.menu > > Create the desktop file in /usr/local/share/applications > Then reference it in the qubes-dispvm.menu file. > The launcher will appear on the menu. Postscript for those using i3 instead of xfce: dmenu sources its entries directly from /usr/local/share/applications. I assume the DispVM Firefox and xterm shortcuts are there by default (named qubes-dispvm-firefox.desktop etc.). To add a new dmenu entry you simply create a new .desktop file (see the examples elsewhere in this thread). E.g. qubes-dispvm-torbrowser.desktop [Desktop Entry] Version=1.0 Type=Application Exec=sh -c 'echo /home/user/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser/start-tor-browser | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 DEFAULT red' Icon=dispvm-red Terminal=false Name=DispVM: Tor Browser StartupNotify=false Categories=Network;WebBrowser;X-Qubes-VM; Then "DispVM: Tor Browser" will be immediately accessible in dmenu. -- ubestemt -- 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/20170429094125.rvwkyualsslxnr56%40bestemt.no. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
On Wed, Mar 08, 2017 at 02:01:51PM -0800, elsiebuck...@gmail.com wrote: > On Thursday, February 23, 2017 at 12:51:46 PM UTC-5, Nick Darren wrote: > ... > >After the modification on 'qubes-dispvm.menu', now I can see my custom menu > on XFCE. :-) > > > How were you able to modify "DispVM: Firefox web browser"? I couldn't view > the contents to make a new one for Opera... Let's say that the entry you need to run from dom0 is this: "echo opera | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 DEFAULT red" (You can play around with the command line until you get it just as you like.) Look in /usr/local/share/applications: Copy the qubes-dispvm-firefox.desktop to qubes-dispvm-opera.desktop Edit qubes-dispvm-opera.desktop and change the EXEC line to whatever command line you have found works. Obviously change the Name line also. Then look in /etc/xdg/menus/application-merged Edit qubes-dispvm.menu You want a line that says: qubes-dispvm-opera.desktop Either add this line below the other Filename entries or replace the existing firefox entry. That's all you need to do. You can., of course, use exactly the same mechanism for starting ANY application in your disposableVMs. I just use a keyboard shortcut to spin up xterm and launch from that. Your choice. unman -- 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/20170309001920.GA5764%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
On Thursday, February 23, 2017 at 12:51:46 PM UTC-5, Nick Darren wrote: ... >After the modification on 'qubes-dispvm.menu', now I can see my custom menu on XFCE. :-) How were you able to modify "DispVM: Firefox web browser"? I couldn't view the contents to make a new one for Opera... -- 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/9ab7b611-5998-4972-aca1-fafbaa0e23e4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 2017-02-23 04:56, Unman wrote: > On Wed, Feb 22, 2017 at 08:55:23PM -0800, Andrew David Wong wrote: >> On 2017-02-17 16:54, Unman wrote: >>> On Sat, Feb 18, 2017 at 12:14:52AM +0100, u+q...@bestemt.no >>> wrote: hawk...@bitmessage.ch[2017-02-17 22:10 +0100]: > You could add a new "launcher" button to the XFCE panel, > and for it's execute command, follow this example for the > tor browser (under section: How to use Tor Browser behind > TorVM), but other applications should work in the same > way: https://www.qubes-os.org/doc/torvm/ Thanks, but I don't see how something similar can be accomplished in i3, which I'm using. >>> >>> Well you haven't said how you intend to add launcher commands >>> to your i3. What HawKing has shown you is a template for the >>> command that you need to run in dom0 to launch programs in a >>> dispVM: "echo | /usr/lib/qubes/qfile-daemon-dvm >>> qubes.VMShell dom0 DEFAULT red" >>> >>> You could create desktop files based on the existing ones that >>> you will find in /usr/local/share/applications >>> >> >> I just tried creating some additional desktop files in this >> manner, but I see no changes (no option to add additional menu >> entries or launcher entries) even after regenerating the DVM >> Template. How is this supposed to work? >> > > The "DisposableVM" entries in the xfce menus are sourced from > /etc/xdg/menus/applications-merged/qubes-dispvm.menu > > Create the desktop file in /usr/local/share/applications Then > reference it in the qubes-dispvm.menu file. The launcher will > appear on the menu. > That works perfectly! Thanks, unman! - -- Andrew David Wong (Axon) Community Manager, Qubes OS https://www.qubes-os.org -BEGIN PGP SIGNATURE- iQIcBAEBCgAGBQJYr8DIAAoJENtN07w5UDAwdfMP/16OzwqUPjj7CiUpqI6pa2Yj yzj5rp4H6oxPnLu0CMu4P1MqBAaJJapuOLXJ4nRliY4Ptfj7VbP9ZR1J9sklL6ZZ Z0X2BQslCK9OOL1GdGeKpaHZ4hXCu2KVsrDbRkzfmb0ZV1ZeEayB0c7+PrUJEy8T W1HhgiZVhn9kEMTz6YzFDSIIVmrlLkOQor0qHgqOp+d4aXw38b3R1pHgM09kffgd OWimMVTnSRs8KXa8KxX3w4Pv10lpl1s/5pO1aKKCllnwQNhFgSQ+ZdUN3p1hWH2N 7Pmx4Zl7BEfaw38YyFnnYrpXCjwYwGSSKJPpOe5hKDfsQ4v8GXiDANsmfA8qwhii 8WZQCdEGf/G3O7y3Xw0tbbNiZVr4gPPoaHdMGPOwQB1ribdZBAogoNbFK0vvMHCE kyToMtnXB5eo0i/LBJAZg/htx5MKFr50ia7VfFy/NM/ETYoMFz4B179YskxLJhR1 /swnZiy8p8Hv7Tm0BaJ+6L6Z6XXjyjCefh1u5o9chXXPip5UVajXQUX7aGpIKy1H v3Ze+BXj4GJx1Y74UI3k6iQ5UIZ/FLwotIyQcslZDMduCjnomnhXAYi+KC+X50g2 v/Xs8TvU+8WiGJKZJYVKoG8pFKaa0c5V9rUGAJ+eMMYRVt4RzNFZHbbPI4puqTMa JZCIlIzdPJvfig8KMGQ/ =VS91 -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/d5164ca0-c55b-131f-9177-c5dddc91edc2%40qubes-os.org. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
On 02/23/2017 12:56 PM, Unman wrote: > On Wed, Feb 22, 2017 at 08:55:23PM -0800, Andrew David Wong wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA512 >> >> On 2017-02-17 16:54, Unman wrote: >>> On Sat, Feb 18, 2017 at 12:14:52AM +0100, u+q...@bestemt.no wrote: hawk...@bitmessage.ch[2017-02-17 22:10 +0100]: > You could add a new "launcher" button to the XFCE panel, and > for it's execute command, follow this example for the tor > browser (under section: How to use Tor Browser behind TorVM), > but other applications should work in the same way: > https://www.qubes-os.org/doc/torvm/ Thanks, but I don't see how something similar can be accomplished in i3, which I'm using. >>> Well you haven't said how you intend to add launcher commands to >>> your i3. What HawKing has shown you is a template for the command >>> that you need to run in dom0 to launch programs in a dispVM: "echo >>> | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 >>> DEFAULT red" >>> >>> You could create desktop files based on the existing ones that you >>> will find in /usr/local/share/applications >>> >> I just tried creating some additional desktop files in this manner, >> but I see no changes (no option to add additional menu entries or >> launcher entries) even after regenerating the DVM Template. How is >> this supposed to work? >> >> - -- >> Andrew David Wong (Axon) >> Community Manager, Qubes OS >> https://www.qubes-os.org > The "DisposableVM" entries in the xfce menus are sourced from > /etc/xdg/menus/applications-merged/qubes-dispvm.menu > > Create the desktop file in /usr/local/share/applications > Then reference it in the qubes-dispvm.menu file. > The launcher will appear on the menu. > Thanks unman. This is what I looking for. I've tried to generate `xdg-desktop-menu`. But doesn't seems working before. After the modification on 'qubes-dispvm.menu', now I can see my custom menu on XFCE. :-) -- 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/950c67e5-00dd-75c1-6f85-0dd29fbc434e%40gmail.com. For more options, visit https://groups.google.com/d/optout. signature.asc Description: OpenPGP digital signature
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
On Wed, Feb 22, 2017 at 08:55:23PM -0800, Andrew David Wong wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On 2017-02-17 16:54, Unman wrote: > > On Sat, Feb 18, 2017 at 12:14:52AM +0100, u+q...@bestemt.no wrote: > >> hawk...@bitmessage.ch[2017-02-17 22:10 > >> +0100]: > >>> You could add a new "launcher" button to the XFCE panel, and > >>> for it's execute command, follow this example for the tor > >>> browser (under section: How to use Tor Browser behind TorVM), > >>> but other applications should work in the same way: > >>> https://www.qubes-os.org/doc/torvm/ > >> > >> Thanks, but I don't see how something similar can be accomplished > >> in i3, which I'm using. > > > > Well you haven't said how you intend to add launcher commands to > > your i3. What HawKing has shown you is a template for the command > > that you need to run in dom0 to launch programs in a dispVM: "echo > > | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 > > DEFAULT red" > > > > You could create desktop files based on the existing ones that you > > will find in /usr/local/share/applications > > > > I just tried creating some additional desktop files in this manner, > but I see no changes (no option to add additional menu entries or > launcher entries) even after regenerating the DVM Template. How is > this supposed to work? > > - -- > Andrew David Wong (Axon) > Community Manager, Qubes OS > https://www.qubes-os.org The "DisposableVM" entries in the xfce menus are sourced from /etc/xdg/menus/applications-merged/qubes-dispvm.menu Create the desktop file in /usr/local/share/applications Then reference it in the qubes-dispvm.menu file. The launcher will appear on the menu. -- 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/20170223125618.GA18687%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 2017-02-17 16:54, Unman wrote: > On Sat, Feb 18, 2017 at 12:14:52AM +0100, u+q...@bestemt.no wrote: >> hawk...@bitmessage.ch[2017-02-17 22:10 >> +0100]: >>> You could add a new "launcher" button to the XFCE panel, and >>> for it's execute command, follow this example for the tor >>> browser (under section: How to use Tor Browser behind TorVM), >>> but other applications should work in the same way: >>> https://www.qubes-os.org/doc/torvm/ >> >> Thanks, but I don't see how something similar can be accomplished >> in i3, which I'm using. > > Well you haven't said how you intend to add launcher commands to > your i3. What HawKing has shown you is a template for the command > that you need to run in dom0 to launch programs in a dispVM: "echo > | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 > DEFAULT red" > > You could create desktop files based on the existing ones that you > will find in /usr/local/share/applications > I just tried creating some additional desktop files in this manner, but I see no changes (no option to add additional menu entries or launcher entries) even after regenerating the DVM Template. How is this supposed to work? - -- Andrew David Wong (Axon) Community Manager, Qubes OS https://www.qubes-os.org -BEGIN PGP SIGNATURE- iQIcBAEBCgAGBQJYrms6AAoJENtN07w5UDAwbl4P/RUMv24SJcuHrtCPfOMNPeB7 iKALzO/JwFXd/reCOoE0y5m3PXETk36W/AXAhne8z4PNz+9oY4SQdct8Vzdlmy+w gfjmvcIrhj0aqsIpC5rmXDJVdLhgCwdL/HSdY2KMSFAAiQ5729rsyiqfB0xtSBc4 Idu902spWe9feWr/XebIvSWGF9vbahmVanQ047lDWcaY5RkMlpybZnv4QygKtOcS Qk/OzUCXCg5LnVTnwezNJ3UArfu8sGW1pL/InhpukzE+pBgN3xoneO+HcJA3yr+U a9OiKJmW7iEyUYoDRehYPuuPs3raGOCPGOvHXyAXU7uKic5u5mB0+uIwqgMw4ZgP xEa2RdV+Ph/e5lWE//+ni2AH5bmxd8vhOOU8kKm2vB3GEk8HB+sZ295t/k7XFJ+c AvxdN8Q8pR0vw9wTY/mONvM65YsB+V1aM04jNb72TShC/XIEax+9lcTp9edenkm7 OQZoSRnkJMTb5QkU3Hl1EV7OF6AkPgvs7BMo+fLVwiAhL2QKjI6MY2tss4n0xoli t0G7j7LZp3oYAxgErrcW9WSYhwB1agmm//pAOBF/hAlBNbpTl/jYTy1ArCkWGdwu uwW9Fl8mfmVEis1tdKO677gwCG/5j6nb0BTfRhOQbPeE319wLp20WCfgmwGHurGy uO6+hjpOEvzQQ8E+YAUR =Utyv -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/8b987a87-016e-72c1-2dec-784e4f72424f%40qubes-os.org. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
Unman[2017-02-18 01:54 +0100]: > Well you haven't said how you intend to add launcher commands to your > i3. > What HawKing has shown you is a template for the command that you need > to run in dom0 to launch programs in a dispVM: > "echo | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 DEFAULT > red" > > You could create desktop files based on the existing ones that you will > find in /usr/local/share/applications /usr/local/share/applications is the directory I was looking for. Modifying its contents accomplished what I wanted to. Thank you! -- 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/20170222104525.vyomxsvbysydqskh%40bestemt.no. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
On 02/17/2017 03:02 PM, u+q...@bestemt.no wrote: How can I add or remove application shortcuts for the DispVM? I've had no problems managing these for TemplateVMs and AppVMs, but the DispVM lacks the "Add more shortcuts..." entry (in i3, anyways), and I haven't been able to locate the appropriate configuration file either. I've also tried to add and remove application shortcuts of the DispVM's internal VM and its TemplateVM without any effects for the DispVM; "Firefox web browser" and "xterm" remain its only application shortcuts. Since the things I want to run in dispVM's changes from time to time, and the VM numbering is meant to change every time, I created a little bash script to help me out. It prompts me with a list of DispVM's currently running, and for each DispVM it lists apps with a check-box for that VM/app combination. I pick one or more check boxes, click Ok, and the selected apps start in their respective VM's qvm-disp-add runs with no parameters, but the first line in the script needs to be modified for your set of applications: e.g. APPS=( gnome-terminal nautilus firefox gedit google-chrome xterm ) Run as: dom0> qvm-disp-add Or embed in a desktop launcher for easy access. It does require "zenity" to be installed in dom0 to present the dialog. I can't remember if I installed that for some other purpose or if it was already there. Your mileage may vary. Steve -- 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/4da5117f-da5d-af32-831d-83833823d22e%40jhuapl.edu. For more options, visit https://groups.google.com/d/optout. #!/bin/bash # list of running disp vm's VMLIST=`qvm-ls --raw-list | grep disp | sed -e 's/\n//g'` applist=[] listsize=0 APPS=( nautilus firefox gedit google-chrome gnome-terminal ) # build list of disp VM's for vm in `echo ${VMLIST[@]}` do isRunning=`qvm-ls $vm | grep -c '\*'` if [ $isRunning -eq 1 ] ; then for app in ${APPS[@]} do applist[$listsize]="false $listsize $vm $app" let listsize++ done fi done if [ $listsize -gt 0 ] ; then SELECTED=`zenity --list --checklist --title="What app would you like to add?" --hide-column=2 --column="Run" --column="lineno" --column="VM" --column="App" ${applist[@]} ` for row in `echo ${SELECTED[@]} | sed -e 's/|/ /g'` do #echo $row ${applist[$row]} | awk '{print $0}' DISPVM=`echo ${applist[$row]} | awk '{print $3}'` EXEC=`echo ${applist[$row]} | awk '{print $4}'` qvm-run -p $DISPVM $EXEC done else echo No disp VMs running fi
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
On Sat, Feb 18, 2017 at 12:14:52AM +0100, u+q...@bestemt.no wrote: > hawk...@bitmessage.ch[2017-02-17 22:10 +0100]: > > You could add a new "launcher" button to the XFCE panel, and for it's > > execute command, follow this example for the tor browser (under section: > > How to use Tor Browser behind TorVM), but other applications should > > work in the same way: > > https://www.qubes-os.org/doc/torvm/ > > Thanks, but I don't see how something similar can be accomplished in i3, > which I'm using. Well you haven't said how you intend to add launcher commands to your i3. What HawKing has shown you is a template for the command that you need to run in dom0 to launch programs in a dispVM: "echo | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 DEFAULT red" You could create desktop files based on the existing ones that you will find in /usr/local/share/applications -- 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/20170218005410.GB19124%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
hawk...@bitmessage.ch[2017-02-17 22:10 +0100]: > You could add a new "launcher" button to the XFCE panel, and for it's > execute command, follow this example for the tor browser (under section: > How to use Tor Browser behind TorVM), but other applications should > work in the same way: > https://www.qubes-os.org/doc/torvm/ Thanks, but I don't see how something similar can be accomplished in i3, which I'm using. -- 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/20170217223834.lsoq3dnwpsi7uhqt%40bestemt.no. For more options, visit https://groups.google.com/d/optout.
Re: [qubes-users] How to manage shortcuts to applications in DispVM?
On Fri, 17 Feb 2017 21:02:39 +0100 u+q...@bestemt.no wrote: > Hi! > > How can I add or remove application shortcuts for the DispVM? I've had > no problems managing these for TemplateVMs and AppVMs, but the DispVM > lacks the "Add more shortcuts..." entry (in i3, anyways), and I > haven't been able to locate the appropriate configuration file > either. I've also tried to add and remove application shortcuts of > the DispVM's internal VM and its TemplateVM without any effects for > the DispVM; "Firefox web browser" and "xterm" remain its only > application shortcuts. > > Thanks in advance! > > -- > Ubestemt > > -- You could add a new "launcher" button to the XFCE panel, and for it's execute command, follow this example for the tor browser (under section: How to use Tor Browser behind TorVM), but other applications should work in the same way: https://www.qubes-os.org/doc/torvm/ -- 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/AE263B41-E6D7-43BA-8CCA-DADE412AD5E0%40mail.bitmessage.ch. For more options, visit https://groups.google.com/d/optout.