buildiso: rely on auto detection for the DE
This commit is contained in:
parent
0eb437493e
commit
0c0fb0554e
3 changed files with 6 additions and 10 deletions
|
@ -2,15 +2,15 @@
|
||||||
###### use this file in the profile ######
|
###### use this file in the profile ######
|
||||||
##########################################
|
##########################################
|
||||||
|
|
||||||
# use multilib packages; x86_64 only
|
|
||||||
# multilib="true"
|
|
||||||
|
|
||||||
# default displaymanager
|
# default displaymanager
|
||||||
# displaymanager="none"
|
# displaymanager="none"
|
||||||
|
|
||||||
# Set to false to disable autologin in the livecd
|
# Set to false to disable autologin in the livecd
|
||||||
# autologin="true"
|
# autologin="true"
|
||||||
|
|
||||||
|
# use multilib packages; x86_64 only
|
||||||
|
# multilib="true"
|
||||||
|
|
||||||
# nonfree xorg drivers
|
# nonfree xorg drivers
|
||||||
# nonfree_xorg="true"
|
# nonfree_xorg="true"
|
||||||
|
|
||||||
|
|
|
@ -186,8 +186,6 @@ load_desktop_map(){
|
||||||
|
|
||||||
detect_desktop_env(){
|
detect_desktop_env(){
|
||||||
local xs=$1/usr/share/xsessions ex=$1/usr/bin key val map=( $(load_desktop_map) )
|
local xs=$1/usr/share/xsessions ex=$1/usr/bin key val map=( $(load_desktop_map) )
|
||||||
if [[ "${default_desktop_executable}" == "none" ]] || \
|
|
||||||
[[ ${default_desktop_file} == "none" ]]; then
|
|
||||||
msg2 "Trying to detect desktop environment ..."
|
msg2 "Trying to detect desktop environment ..."
|
||||||
for item in "${map[@]}";do
|
for item in "${map[@]}";do
|
||||||
key=${item%:*}
|
key=${item%:*}
|
||||||
|
@ -195,9 +193,11 @@ detect_desktop_env(){
|
||||||
if [[ -f $xs/$key.desktop ]] && [[ -f $ex/$val ]];then
|
if [[ -f $xs/$key.desktop ]] && [[ -f $ex/$val ]];then
|
||||||
default_desktop_file="$key"
|
default_desktop_file="$key"
|
||||||
default_desktop_executable="$val"
|
default_desktop_executable="$val"
|
||||||
|
else
|
||||||
|
default_desktop_executable="none"
|
||||||
|
default_desktop_file="none"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
msg2 "Detected: %s" "${default_desktop_file}"
|
msg2 "Detected: %s" "${default_desktop_file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -279,10 +279,6 @@ load_profile_config(){
|
||||||
|
|
||||||
[[ -z ${nonfree_xorg} ]] && nonfree_xorg="true"
|
[[ -z ${nonfree_xorg} ]] && nonfree_xorg="true"
|
||||||
|
|
||||||
[[ -z ${default_desktop_executable} ]] && default_desktop_executable="none"
|
|
||||||
|
|
||||||
[[ -z ${default_desktop_file} ]] && default_desktop_file="none"
|
|
||||||
|
|
||||||
[[ -z ${efi_boot_loader} ]] && efi_boot_loader="grub"
|
[[ -z ${efi_boot_loader} ]] && efi_boot_loader="grub"
|
||||||
|
|
||||||
[[ -z ${efi_part_size} ]] && efi_part_size="32M"
|
[[ -z ${efi_part_size} ]] && efi_part_size="32M"
|
||||||
|
|
Loading…
Reference in a new issue