|
@@ -268,6 +268,13 @@ switching from user to root. Since all the user data in a VM is accessible
|
|
|
already from normal user account, there is not much more to guard there. Qubes
|
|
|
VM is a single user system.
|
|
|
|
|
|
+%package thunar
|
|
|
+Summary: Thunar support for Qubes VM tools
|
|
|
+Requires: Thunar
|
|
|
+
|
|
|
+%description thunar
|
|
|
+Thunar support for Qubes VM tools
|
|
|
+
|
|
|
%define _builddir %(pwd)
|
|
|
|
|
|
%define kde_service_dir /usr/share/kde4/services
|
|
@@ -463,6 +470,22 @@ sed 's/^net.ipv4.ip_forward.*/#\0/' -i /etc/sysctl.conf
|
|
|
%post qrexec
|
|
|
%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 </actions>
|
|
|
+# the end of file.
|
|
|
+if [ "$1" = 1 ]; then
|
|
|
+ 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
|
|
|
+ fi
|
|
|
+ if [ -f /home/user/.config/Thunar/uca.xml ] ; then
|
|
|
+ cp -p /home/user/.config/Thunar/uca.xml{,.bak}
|
|
|
+ sed -i '$e cat /usr/lib/qubes/uca_qubes.xml' /home/user/.config/Thunar/uca.xml
|
|
|
+ fi
|
|
|
+fi
|
|
|
+
|
|
|
%preun
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
# no more packages left
|
|
@@ -484,6 +507,18 @@ fi
|
|
|
%preun qrexec
|
|
|
%systemd_preun qubes-qrexec-agent.service
|
|
|
|
|
|
+%postun thunar
|
|
|
+if [ "$1" = 0 ]; then
|
|
|
+ if [ -f /etc/xdg/Thunar/uca.xml ] ; then
|
|
|
+ mv /etc/xdg/Thunar/uca.xml{,.uninstall}
|
|
|
+ mv /etc/xdg/Thunar/uca.xml{.bak,}
|
|
|
+ fi
|
|
|
+ if [ -f /home/user/.config/Thunar/uca.xml ] ; then
|
|
|
+ mv /home/user/.config/Thunar/uca.xml{,.uninstall}
|
|
|
+ mv /home/user/.config/Thunar/uca.xml{.bak,}
|
|
|
+ fi
|
|
|
+fi
|
|
|
+
|
|
|
%postun
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
@@ -674,6 +709,10 @@ rm -f %{name}-%{version}
|
|
|
/usr/share/nautilus-python/extensions/qvm_move_nautilus.py*
|
|
|
/usr/share/nautilus-python/extensions/qvm_dvm_nautilus.py*
|
|
|
|
|
|
+%files thunar
|
|
|
+/usr/lib/qubes/qvm-actions.sh
|
|
|
+/usr/lib/qubes/uca_qubes.xml
|
|
|
+
|
|
|
%files dom0-updates
|
|
|
%dir %attr(0775,user,user) /var/lib/qubes/dom0-updates
|
|
|
/usr/lib/qubes/qubes-download-dom0-updates.sh
|