[Xfce4-commits] <xfce4-session:nick/shutdown-cleanup> Drop user-dirs.dirs handling.

Nick Schermer noreply at xfce.org
Fri Feb 24 22:18:03 CET 2012


Updating branch refs/heads/nick/shutdown-cleanup
         to e5da6d477ac0d4a1e1de322b52f1fb9721af9571 (commit)
       from 9045c1a85720ec6046095ae57f64b4990367d630 (commit)

commit e5da6d477ac0d4a1e1de322b52f1fb9721af9571
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Feb 24 22:04:37 2012 +0100

    Drop user-dirs.dirs handling.
    
    This is heavily outdated.

 scripts/xinitrc.in.in |   29 -----------------------------
 1 files changed, 0 insertions(+), 29 deletions(-)

diff --git a/scripts/xinitrc.in.in b/scripts/xinitrc.in.in
index a85ac4a..bfef2ca 100755
--- a/scripts/xinitrc.in.in
+++ b/scripts/xinitrc.in.in
@@ -45,35 +45,6 @@ if which xdg-user-dirs-update >/dev/null 2>&1; then
     xdg-user-dirs-update
 fi
 
-if test -f "$XDG_CONFIG_HOME/user-dirs.dirs"; then
-    . "$XDG_CONFIG_HOME/user-dirs.dirs"
-    # i'm deliberately not 'export'-ing the XDG_ vars, because you shouldn't
-    # rely on the env vars inside apps, since the file could be changed at
-    # any time by the user.  this is solely here for migration purposes.
-
-    # 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" != "$XDG_DESKTOP_DIR"
-    then
-        echo "Migrating $HOME/Desktop to $XDG_DESKTOP_DIR..."
-        test -d "$XDG_DESKTOP_DIR" && rmdir "$XDG_DESKTOP_DIR"
-        mv "$HOME/Desktop" "$XDG_DESKTOP_DIR" || echo "Desktop migration failed" >&2
-    fi
-
-    if test -d "$HOME/Templates" -a ! -L "$HOME/Templates" \
-            -a "$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"
-        mv "$HOME/Templates" "$XDG_TEMPLATES_DIR" || echo "Templates migration failed" >&2
-    fi
-fi
-
-
 # Modify libglade and glade environment variables so that
 # it will find the files installed by Xfce
 LIBGLADE_MODULE_PATH="$LIBGLADE_MODULE_PATH:@XFCE_LIBGLADE_MODULE_PATH@"


More information about the Xfce4-commits mailing list