summaryrefslogtreecommitdiffstats
path: root/liveinst/liveinst.xinit
blob: d9d80335bcc7d556c1f2f093e969e637251c4dc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Set up a launcher on the desktop for the live installer if we're on
# a live CD

if [ -b /dev/live-osimg ]; then
    test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
    cp /usr/share/applications/liveinst.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
elif [ -f /.livecd-configured ]; then  # FIXME: old way... this should go away
    test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
    cp /usr/share/applications/liveinst.desktop "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
fi