From 82656bb5dfb9f75bc145aadf5314d73b424dab58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret?= Date: Fri, 17 Nov 2017 18:47:39 +0100 Subject: [PATCH] Disable Thunar thumbnails --- Makefile | 2 ++ misc/thunar.xml | 5 +++++ rpm_spec/core-agent.spec | 9 +++++---- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 misc/thunar.xml diff --git a/Makefile b/Makefile index 22b2891..6113427 100644 --- a/Makefile +++ b/Makefile @@ -249,6 +249,8 @@ endif install qubes-rpc/qvm-move-to-vm.gnome $(DESTDIR)$(LIBDIR)/qubes install qubes-rpc/qvm-actions.sh $(DESTDIR)$(LIBDIR)/qubes install -m 0644 misc/uca_qubes.xml $(DESTDIR)$(LIBDIR)/qubes + mkdir -p $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml + install -m 0644 misc/thunar.xml $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml install qubes-rpc/xdg-icon $(DESTDIR)$(LIBDIR)/qubes install qubes-rpc/{vm-file-editor,qfile-agent,qopen-in-vm} $(DESTDIR)$(LIBDIR)/qubes install qubes-rpc/qubes-open $(DESTDIR)$(BINDIR) diff --git a/misc/thunar.xml b/misc/thunar.xml new file mode 100644 index 0000000..71bfd6c --- /dev/null +++ b/misc/thunar.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/rpm_spec/core-agent.spec b/rpm_spec/core-agent.spec index 978e4f2..ca2065a 100644 --- a/rpm_spec/core-agent.spec +++ b/rpm_spec/core-agent.spec @@ -471,11 +471,11 @@ sed 's/^net.ipv4.ip_forward.*/#\0/' -i /etc/sysctl.conf %systemd_post qubes-qrexec-agent.service %post thunar -# There is no system-wide Thunar custom actions. There is only a default -# file and a user file created from the default one. Qubes actions need -# to be placed after all already defined actions and before -# the end of file. if [ "$1" = 1 ]; then + # There is no system-wide Thunar custom actions. There is only a default + # file and a user file created from the default one. Qubes actions need + # to be placed after all already defined actions and before + # the end of file. if [ -f /etc/xdg/Thunar/uca.xml ] ; then cp -p /etc/xdg/Thunar/uca.xml{,.bak} sed -i '$e cat /usr/lib/qubes/uca_qubes.xml' /etc/xdg/Thunar/uca.xml @@ -712,6 +712,7 @@ rm -f %{name}-%{version} %files thunar /usr/lib/qubes/qvm-actions.sh /usr/lib/qubes/uca_qubes.xml +/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar.xml %files dom0-updates %dir %attr(0775,user,user) /var/lib/qubes/dom0-updates