summaryrefslogtreecommitdiffstats
path: root/files/desktop-directories-liveusb-rw
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-11-25 21:09:10 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-11-25 21:09:10 +0000
commit5da42d985f5bc84029fed3fc8cd9e53197dc00d6 (patch)
tree5b1763d00ee7dbc114d3b142bc69ce718551aa81 /files/desktop-directories-liveusb-rw
parenta035045c7a2472ac12044547563d6f0bcf09ffc4 (diff)
downloaddraklive-config-5da42d985f5bc84029fed3fc8cd9e53197dc00d6.tar
draklive-config-5da42d985f5bc84029fed3fc8cd9e53197dc00d6.tar.gz
draklive-config-5da42d985f5bc84029fed3fc8cd9e53197dc00d6.tar.bz2
draklive-config-5da42d985f5bc84029fed3fc8cd9e53197dc00d6.tar.xz
draklive-config-5da42d985f5bc84029fed3fc8cd9e53197dc00d6.zip
Remove obsolete files.
We build hybrid ISOs, so don't need separate USB images. Various other files are no longer used amywhere.
Diffstat (limited to 'files/desktop-directories-liveusb-rw')
-rwxr-xr-xfiles/desktop-directories-liveusb-rw37
1 files changed, 0 insertions, 37 deletions
diff --git a/files/desktop-directories-liveusb-rw b/files/desktop-directories-liveusb-rw
deleted file mode 100755
index 3fd7635..0000000
--- a/files/desktop-directories-liveusb-rw
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-LIVEUSB_LOCK="$HOME/.liveusb-folders"
-LIVEUSB_ROOT=/live/media
-[ -e "$LIVEUSB_ROOT/My Documents" ] && LIVEUSB_ALA_WINDOWS=1
-
-[ -e $LIVEUSB_LOCK ] && exit
-
-while pidof -x xdg-user-dirs-update; do
- [ "$SECONDS" -le 60 ] || return
- sleep 1
-done
-
-function create_link() {
- NAME=$1
- SRC=$2
- [ -z "$SRC" ] && SRC=$($NAME)
- XDG_DIR=$(xdg-user-dir $NAME)
- LIVEUSB_DIR="$LIVEUSB_ROOT/$SRC"
- mkdir -p "$LIVEUSB_DIR"
- mv $XDG_DIR/{.??,}* "$LIVEUSB_DIR"
- rmdir $XDG_DIR && ln -sf "$LIVEUSB_DIR" "$XDG_DIR"
-}
-
-if [ -n "$LIVEUSB_ALA_WINDOWS" ]; then
- create_link "DOCUMENTS" "My Documents"
- create_link "DOWNLOAD" "My Documents/My Downloads"
- create_link "MUSIC" "My Documents/My Music"
- create_link "PICTURES" "My Documents/My Images"
- create_link "VIDEOS" "My Documents/My Video"
-else
- for d in DOWNLOAD DOCUMENTS MUSIC PICTURES VIDEOS; do
- create_link $d $(echo $d | tr A-Z a-z)
- done
-fi
-
-touch $LIVEUSB_LOCK