From 361ab0b266729648460f385b0fc9d1ed9ea39059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 13 Jan 2014 05:07:23 +0100 Subject: [PATCH] qubes-rpc: introduce services for browsing VM filesystem For now used to select system backup inside of VM. --- Makefile | 1 + qubes-rpc/qubes.SelectDirectory | 1 + qubes-rpc/qubes.SelectFile | 1 + rpm_spec/core-vm.spec | 2 ++ 4 files changed, 5 insertions(+) create mode 100644 qubes-rpc/qubes.SelectDirectory create mode 100644 qubes-rpc/qubes.SelectFile diff --git a/Makefile b/Makefile index 553c552..3173e21 100644 --- a/Makefile +++ b/Makefile @@ -138,6 +138,7 @@ install-vm: install -m 0644 qubes-rpc/qubes.WaitForSession $(DESTDIR)/etc/qubes-rpc install -m 0644 qubes-rpc/qubes.DetachPciDevice $(DESTDIR)/etc/qubes-rpc install -m 0644 qubes-rpc/qubes.{Backup,Restore} $(DESTDIR)/etc/qubes-rpc + install -m 0644 qubes-rpc/qubes.Select{File,Directory} $(DESTDIR)/etc/qubes-rpc install -d $(DESTDIR)/usr/share/file-manager/actions install -m 0644 qubes-rpc/*-gnome.desktop $(DESTDIR)/usr/share/file-manager/actions diff --git a/qubes-rpc/qubes.SelectDirectory b/qubes-rpc/qubes.SelectDirectory new file mode 100644 index 0000000..62550f6 --- /dev/null +++ b/qubes-rpc/qubes.SelectDirectory @@ -0,0 +1 @@ +exec zenity --title="Qubes" --file-selection --directory diff --git a/qubes-rpc/qubes.SelectFile b/qubes-rpc/qubes.SelectFile new file mode 100644 index 0000000..bc7c2d3 --- /dev/null +++ b/qubes-rpc/qubes.SelectFile @@ -0,0 +1 @@ +exec zenity --title="Qubes" --file-selection diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index b68071a..1009c3e 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -279,6 +279,8 @@ rm -f %{name}-%{version} /etc/qubes-rpc/qubes.DetachPciDevice /etc/qubes-rpc/qubes.Backup /etc/qubes-rpc/qubes.Restore +/etc/qubes-rpc/qubes.SelectFile +/etc/qubes-rpc/qubes.SelectDirectory /etc/sudoers.d/qubes %config(noreplace) /etc/sysconfig/iptables %config(noreplace) /etc/sysconfig/ip6tables