summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJonathan Bauer2014-07-04 16:14:24 +0200
committerJonathan Bauer2014-07-04 16:14:24 +0200
commit7519b7c3f1fe132f62c72266c13da66385b3f713 (patch)
treeee2a1c51b7cc536dbb771bc06bcf38a05d818552 /server
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-7519b7c3f1fe132f62c72266c13da66385b3f713.tar.gz
tm-scripts-7519b7c3f1fe132f62c72266c13da66385b3f713.tar.xz
tm-scripts-7519b7c3f1fe132f62c72266c13da66385b3f713.zip
[xdg] working fix
firefox and so on understand it this way....
Diffstat (limited to 'server')
-rw-r--r--server/modules/xdg-users-dir-fix/etc/profile.d/99-user-dirs.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/server/modules/xdg-users-dir-fix/etc/profile.d/99-user-dirs.sh b/server/modules/xdg-users-dir-fix/etc/profile.d/99-user-dirs.sh
index 6ddee803..1084ac06 100644
--- a/server/modules/xdg-users-dir-fix/etc/profile.d/99-user-dirs.sh
+++ b/server/modules/xdg-users-dir-fix/etc/profile.d/99-user-dirs.sh
@@ -1,10 +1,14 @@
#!/bin/ash
-export XDG_DESKTOP_DIR="$HOME/PERSISTENT/Desktop"
-export XDG_DOWNLOAD_DIR="$HOME/PERSISTENT/Downloads"
-export XDG_TEMPLATES_DIR="$HOME/PERSISTENT/Templates"
-export XDG_PUBLICSHARE_DIR="$HOME/PERSISTENT/Public"
-export XDG_DOCUMENTS_DIR="$HOME/PERSISTENT/Documents"
-export XDG_MUSIC_DIR="$HOME/PERSISTENT/Music"
-export XDG_PICTURES_DIR="$HOME/PERSISTENT/Pictures"
-export XDG_VIDEOS_DIR="$HOME/PERSISTENT/Videos"
+
+cat > "$HOME/.config/user-dirs.dirs" <<-EOF
+
+XDG_DESKTOP_DIR="$HOME/PERSISTENT/Desktop"
+XDG_DOWNLOAD_DIR="$HOME/PERSISTENT/Downloads"
+XDG_TEMPLATES_DIR="$HOME/PERSISTENT/Templates"
+XDG_PUBLICSHARE_DIR="$HOME/PERSISTENT/Public"
+XDG_DOCUMENTS_DIR="$HOME/PERSISTENT/Documents"
+XDG_MUSIC_DIR="$HOME/PERSISTENT/Music"
+XDG_PICTURES_DIR="$HOME/PERSISTENT/Pictures"
+XDG_VIDEOS_DIR="$HOME/PERSISTENT/Videos"
+EOF