anaconda/anaconda-40.22.3.13/data/liveinst/liveinst-setup.sh
2024-11-14 21:39:56 -08:00

14 lines
578 B
Bash
Executable file

#!/bin/bash
# Set up a launcher on the desktop for the live installer if we're on
# a live CD
if [ ! -b /dev/mapper/live-base ] && [ ! -b /dev/mapper/live-osimg-min ]; then
exit 0
fi
# Prevents breakage if the hostname is changed before or during the install
# Also lets us run (with the X11 backend) on Wayland
[ -x /usr/bin/xhost ] && xhost +si:localuser:root > /dev/null 2>&1
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}"