From 48ef3f05d9863a7a56b344bd66f7d7a252cb4b4f Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 20 Jan 2009 23:03:05 -0600 Subject: [PATCH] Sanitize the local user's setup --- screen-launcher | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/screen-launcher b/screen-launcher index 8dcfc655..17f9dc95 100755 --- a/screen-launcher +++ b/screen-launcher @@ -1,6 +1,6 @@ #!/bin/bash -e # -# GNU screen-profiles-helper +# screen-launcher # Copyright (C) 2008 Canonical Ltd. # # Authors: Nick Barcet @@ -20,6 +20,12 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# Sanitize the local user's setup +for i in ".screenrc-keybindings" ".screenrc-windows"; do + if [ ! -e "$HOME/$i" ]; then + touch "$HOME/$i" + fi +done if [ "$TERM" != "screen" ]; then screen -xRR