From 3abc3b1b75c0f070237d93dfe21eeb5caaa0afa8 Mon Sep 17 00:00:00 2001 From: TomZ Date: Tue, 12 Dec 2017 15:56:33 +0100 Subject: [PATCH] Fix language issues and usability issue --- init/setup-rw.sh | 16 +++++++--------- qubes-rpc/qubes.StartApp | 4 ++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/init/setup-rw.sh b/init/setup-rw.sh index 9d8c5b9..19283d7 100755 --- a/init/setup-rw.sh +++ b/init/setup-rw.sh @@ -25,33 +25,31 @@ if mountpoint -q /rw ; then # This script will be executed at every VM startup, you can place your own # custom commands here. This include overriding some configuration in /etc, # starting services etc. -# -# You need to make this script executable to have it enabled. # Example for overriding the whole CUPS configuration: # rm -rf /etc/cups # ln -s /rw/config/cups /etc/cups # systemctl --no-block restart cups EOF + chmod 755 /rw/config/rc.local touch /rw/config/qubes-firewall-user-script cat > /rw/config/qubes-firewall-user-script < /rw/config/suspend-module-blacklist <&2 + echo "This service requires an argument" >&2 exit 1 fi -# make sure it have .desktop suffix, and only one of it +# make sure it has .desktop suffix, and only one of it app_basename="${1%.desktop}.desktop" # Based on XDG Base Directory Specification, Version 0.7