[gdm] dconf: Clean up temp dir on error



commit 00a61700cdcbcecc41b33e308984dc06cd4e7fc8
Author: Daniel Trebbien <dtrebbien gmail com>
Date:   Wed Mar 2 20:59:07 2011 -0500

    dconf: Clean up temp dir on error

 data/make-dconf-override-db.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/make-dconf-override-db.sh b/data/make-dconf-override-db.sh
index 363c450..8f4dc6d 100755
--- a/data/make-dconf-override-db.sh
+++ b/data/make-dconf-override-db.sh
@@ -5,7 +5,7 @@ set -e
 export XDG_CONFIG_HOME=$(mktemp -d --tmpdir="$PWD")
 eval `dbus-launch --sh-syntax`
 
-trap 'kill $DBUS_SESSION_BUS_PID' ERR
+trap 'rm -rf $XDG_CONFIG_HOME; kill $DBUS_SESSION_BUS_PID' ERR
 
 gsettings set org.gnome.power-manager show-actions false
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]