OSDN Git Service

[fix] : FIxed --alterlive
authorhayao <shun819.mail@gmail.com>
Thu, 31 Dec 2020 23:44:53 +0000 (08:44 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 31 Dec 2020 23:44:53 +0000 (08:44 +0900)
alterlinux-desktop-file/alterlinux-desktop-file

index 63b25d1..4dec5b4 100755 (executable)
@@ -72,6 +72,9 @@ while true; do
     esac
 done
 
+if [[ "${alterlive}" = true ]]; then
+    remove "${HOME}/.config/autostart/genicon.desktop"
+fi
 
 if [[ "${checklive}" = true ]]; then
     if ! pacman -Qq alterlinux-calamares 1> /dev/null 2> /dev/null; then
@@ -147,8 +150,3 @@ sed -i "s/%OS_NAME%/${os_name}/g" "${desktop_icon}"
 source_file="/usr/share/alterlinux/desktop-file/welcome-to-alter.desktop"
 desktop_icon="${desktop_dir}/$(basename "${source_file}")"
 copy "${source_file}" "${desktop_dir}"
-
-
-if [[ "${alterlive}" = true ]]; then
-    remove "${HOME}/.config/autostart/genicon.desktop"
-fi