make user directories manually, skip xdg
parent
6a7683f34a
commit
a2d4cf9e6e
|
|
@ -8,7 +8,7 @@ VERSION=1.3.5
|
||||||
# first install stock version
|
# first install stock version
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install --no-install-recommends --yes $NAME feh compton volumeicon-alsa murrine-themes leafpad qalculate-gtk scrot xdg-user-dirs
|
apt-get install --no-install-recommends --yes $NAME feh compton volumeicon-alsa murrine-themes leafpad qalculate-gtk scrot
|
||||||
. ../../cleanup
|
. ../../cleanup
|
||||||
|
|
||||||
(cd rootcopy && cp --parents -afr * /)
|
(cd rootcopy && cp --parents -afr * /)
|
||||||
|
|
@ -19,6 +19,25 @@ savechanges /$NAME-stock.sb
|
||||||
cd /
|
cd /
|
||||||
unsquashfs /$NAME-stock.sb
|
unsquashfs /$NAME-stock.sb
|
||||||
|
|
||||||
|
# create user directories
|
||||||
|
mkdir -p /squashfs-root/home/guest/Desktop
|
||||||
|
mkdir -p /squashfs-root/home/guest/Documents
|
||||||
|
mkdir -p /squashfs-root/home/guest/Downloads
|
||||||
|
mkdir -p /squashfs-root/home/guest/Music
|
||||||
|
mkdir -p /squashfs-root/home/guest/Pictures
|
||||||
|
mkdir -p /squashfs-root/home/guest/Public
|
||||||
|
mkdir -p /squashfs-root/home/guest/Templates
|
||||||
|
mkdir -p /squashfs-root/home/guest/Videos
|
||||||
|
ln -s /home/guest/Desktop /squashfs-root/root/Desktop
|
||||||
|
ln -s /home/guest/Documents /squashfs-root/root/Documents
|
||||||
|
ln -s /home/guest/Downloads /squashfs-root/root/Downloads
|
||||||
|
ln -s /home/guest/Music /squashfs-root/root/Music
|
||||||
|
ln -s /home/guest/Pictures /squashfs-root/root/Pictures
|
||||||
|
ln -s /home/guest/Public /squashfs-root/root/Public
|
||||||
|
ln -s /home/guest/Templates /squashfs-root/root/Templates
|
||||||
|
ln -s /home/guest/Videos /squashfs-root/root/Videos
|
||||||
|
chown -R guest.users /squashfs-root/home/guest
|
||||||
|
|
||||||
# then, we want to patch it to implement window resizing!
|
# then, we want to patch it to implement window resizing!
|
||||||
# so we will recompile whole package
|
# so we will recompile whole package
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
/home/guest/Downloads
|
|
||||||
|
|
@ -1,10 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PICTURES=$(xdg-user-dir PICTURES)
|
PICTURES=~/Pictures
|
||||||
if [ "$PICTURES" = "" ]; then
|
|
||||||
PICTURES=~/Pictures
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p $PICTURES
|
mkdir -p $PICTURES
|
||||||
cd $PICTURES
|
cd $PICTURES
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue