[Xfce4-commits] <xfce4-session:nick/shutdown-cleanup> Don't try to remove the $HOME directory (bug #8154).
Nick Schermer
noreply at xfce.org
Mon Nov 28 21:44:13 CET 2011
Updating branch refs/heads/nick/shutdown-cleanup
to d5303908288390b28692af9e8d0aaea4314fe9c9 (commit)
from 4379cd05592ebff1234951f478c7f3b4d1d22784 (commit)
commit d5303908288390b28692af9e8d0aaea4314fe9c9
Author: Nick Schermer <nick at xfce.org>
Date: Thu Nov 17 21:37:00 2011 +0100
Don't try to remove the $HOME directory (bug #8154).
scripts/xinitrc.in.in | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/xinitrc.in.in b/scripts/xinitrc.in.in
index f582934..e63eac1 100755
--- a/scripts/xinitrc.in.in
+++ b/scripts/xinitrc.in.in
@@ -54,7 +54,8 @@ if test -f "$XDG_CONFIG_HOME/user-dirs.dirs"; then
# a bit of user dir migration...
if test -d "$HOME/Desktop" -a ! -L "$HOME/Desktop" \
-a "$XDG_DESKTOP_DIR" \
- -a "$HOME/Desktop" != "$XDG_DESKTOP_DIR"
+ -a "$HOME/Desktop" != "$XDG_DESKTOP_DIR" \
+ -a "$HOME" != "$XDG_DESKTOP_DIR"
then
echo "Migrating $HOME/Desktop to $XDG_DESKTOP_DIR..."
test -d "$XDG_DESKTOP_DIR" && rmdir "$XDG_DESKTOP_DIR"
@@ -63,7 +64,8 @@ if test -f "$XDG_CONFIG_HOME/user-dirs.dirs"; then
if test -d "$HOME/Templates" -a ! -L "$HOME/Templates" \
-a "$XDG_TEMPLATES_DIR" \
- -a "$HOME/Templates" != "$XDG_TEMPLATES_DIR"
+ -a "$HOME/Templates" != "$XDG_TEMPLATES_DIR" \
+ -a "$HOME" != "$XDG_TEMPLATES_DIR"
then
echo "Migrating $HOME/Templates to $XDG_TEMPLATES_DIR..."
test -d "$XDG_TEMPLATES_DIR" && rmdir "$XDG_TEMPLATES_DIR"
More information about the Xfce4-commits
mailing list