From df8ac3ff7f05a36992e2181ce953bb31458a3266 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Thu, 31 Mar 2011 13:53:04 +0200 Subject: [PATCH] On each startup check if user has symlinks for nautilus qubes-specific actions Create symlinks if not. This is useful when migrating from old templates (#163) --- appvm/qubes_core_appvm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/appvm/qubes_core_appvm b/appvm/qubes_core_appvm index 32c0833f..97229a5e 100755 --- a/appvm/qubes_core_appvm +++ b/appvm/qubes_core_appvm @@ -56,6 +56,13 @@ start() MEMINFO_DELAY_USEC=100000 /usr/lib/qubes/meminfo-writer $MEM_CHANGE_THRESHOLD_KB $MEMINFO_DELAY_USEC & + if ! [ -f /home/user/.gnome2/nautilus-scripts/qvm-* ] ; then + echo "Creating symlinks for nautilus actions..." + su user -c 'mkdir -p /home/user/.gnome2/nautilus-scripts' + su user -c 'ln -s /usr/lib/qubes/qvm-copy-to-vm2.gnome /home/user/.gnome2/nautilus-scripts/"Copy to other AppVM"' + su user -c 'ln -s /usr/bin/qvm-open-in-dvm2 /home/user/.gnome2/nautilus-scripts/"Open in DisposableVM"' + fi + success echo "" return 0