Qubes-OS: a thunar script implementing custom actions for qvm-related things

179 views
Skip to first unread message

Franco Bersani

unread,
Mar 18, 2017, 6:45:42 AM3/18/17
to qubes...@googlegroups.com
Hi all,
I'm Franco Bersani, a Gnu/Linux sysadmin who lives in Italy.
I'm testing Qubes-os, and I'm appreciating the project a lot.
I'm a xfce/thunar user, so I've developed a (really simple, but
effective) bash script to implement also in Thunar the custom action
provided in Nautilus (Gnome Files) and in Dolphin.
The bash script provides these functions:
- Open in Disposable AppVM
- Move to other AppVM
- Open to other AppVM
- Open in other AppVM

Attached to this email you can find a zip file
(thunar-actions.zip) containing:
- qvm-thunar-actions.sh : the bash script, to be copied in ~/bin
directory
- uca_add.xml : custom actions to be copied
within .config/Thunar/uca.xml, between <actions> and </actions> tags.

I hope you'll appreciate my small contribute to your project, and I
hope you'll find it interesting enough to be added to ufficial
documentation or in a qubes-os future version.

Have a nice day.

--
Franco 'frakbe' Bersani
thunar-actions.zip

Andrew David Wong

unread,
Mar 18, 2017, 7:17:39 PM3/18/17
to Franco Bersani, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Thank you for your contribution, Franco!

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYzcAHAAoJENtN07w5UDAw5lQP/ArO8ItQwMiTAikxXfbxTUSl
TWv6/MFqw+mUvGmxsD2bVBTOV6BrvIp68LvHiIk/AY+OpklvpiOsUvpxNeALk7LH
3Jx3v5kU9IB7F2kXlEcput8Tr02ctszRTVf0AEfX5Gztin3aeZb7jOQRDQ1vOoBG
IVjtYoSSKp7E/hgxYpG1Xv++UmOH6EdAURcAdWGd+opThImzIPim3yWYI0AeW4O2
EJtW/an2jIddiZxZGoNStcpdNnWxD74xvVBWip9Eg8sfn2VrOA4EdbLpLYQO2CR8
X0uk6i6keLVf18nBgppz/drnfYW1pwMCTeTjDVlAMfq2biaaia8xIPR4YaJ1mB0J
gq/Px76KJuGOYL+XUkqvK5eOemXeHJ+QNwmlEU9zqrWBALshTbKWOLUeRPZUQAFa
AJO/Ruv2TRN4QkcbP/ZQEB5Uh3ujowvFJ+x49o7UnRZZCsJgwM71XumWIKkUV5jA
LQ/g1fN1qfTW1ePp48dqNnRb3IpUAPHjcJUCLjNMt8FScWQ0NF1apmp1BRxzCaIW
EpAjIyrF8I3/2LZQXb56LYFg39jTWO9vRQEJiKLG8LyloHwpo2xo3Z0hSm0P+lz5
+DLgB/r8t6NsypzdLJVGXvxIaOpSsea8Zuk4Ck2Qrn8MWhEGlPQ8OoCPBEUGjEhg
NHF+jalrIzK9xb7krXrP
=qnIm
-----END PGP SIGNATURE-----

Haw...@bitmessage.ch

unread,
Mar 19, 2017, 12:44:20 AM3/19/17
to qubes...@googlegroups.com
Very nice, thanks! I've been wishing for just this feature for some
time.

Reg Tiangha

unread,
Mar 19, 2017, 2:33:58 PM3/19/17
to qubes...@googlegroups.com
On 2017-03-18 10:44 PM, Haw...@bitmessage.ch
wrote:
This is great! Is there an easy way to apply this mod to a TemplateVM?
It'd save me a lot of work doing it that way instead of modifying all of
my AppVMs (of which I have many). If not, that's cool too; this mod
makes it worth it.

Franco Bersani

unread,
Mar 20, 2017, 3:41:29 AM3/20/17
to qubes...@googlegroups.com
Hi,
I didn't try, but I think it's possible; if you copy the bash script on
/usr/bin of your TemplateVM and then modify accordingly the
/etc/xdg/Thunar/uca.xml file, adding the custom actions (obviously, you
have to modify the path of the bash script), the matter should be done.

Reg Tiangha

unread,
Mar 21, 2017, 11:21:43 AM3/21/17
to qubes...@googlegroups.com
Thanks. I just tried it and it works great. Thanks again!



Haw...@bitmessage.ch

unread,
Jun 12, 2017, 2:09:28 AM6/12/17
to qubes...@googlegroups.com, Franco Bersani
On Sat, 18 Mar 2017 11:45:29 +0100
Franco Bersani <franco....@zoho.com> wrote:

Thanks Franco for starting the framework.

Copy and move had problems with cancel, and the status bar was not
implemented.

There are examples from how it's done in nautilus in python:
/usr/share/nautilus-python/extensions/

And, copy and move are already implemented in:
/usr/lib/qubes/

I attached an improved (and more simplified modular) version of:
/home/user/bin/qvm-thunar-actions.sh

Also, to add to the above instructions, you need to:
chmod +x qvm-thunar-actions.sh

Cheers
qvm-thunar-actions.sh

Haw...@bitmessage.ch

unread,
Jun 20, 2017, 9:39:48 PM6/20/17
to qubes...@googlegroups.com
In light of dom0's default desktop choice, and of the more utilitarian
minimal nature of the xfce software choices in general compared to the
increasingly cloud-friendly gnome, I'm wondering whether there is any
reasoning behind this choice for the default vm for the distributed
Qubes? Further, would there be any non-trivial development cost to
switching?

Reply all
Reply to author
Forward
0 new messages