aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/desktop-autoloader6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/desktop-autoloader b/bin/desktop-autoloader
index 03913b3..440ccea 100755
--- a/bin/desktop-autoloader
+++ b/bin/desktop-autoloader
@@ -25,6 +25,12 @@ DESKTOP_SESSION_MANAGER="x-session-manager"
test -f /etc/default/desktop-autoloader && . /etc/default/desktop-autoloader
+# clean up .xsession-errors for a new launch (in case this tool is used
+# on a non-diskless machine...
+if [ "$(id -un)" == "desktop-autoloader" ]; then
+ rm -f ~/.xsession-errors
+fi
+
###
### input sanitizing...
###