OSDN Git Service

[update] : browser background
authorhayao <shun819.mail@gmail.com>
Sat, 1 Aug 2020 07:20:14 +0000 (16:20 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 1 Aug 2020 07:20:14 +0000 (16:20 +0900)
alterlinux-welcome-page/alterlinux-welcome-page

index b81b441..ea5600e 100755 (executable)
@@ -56,7 +56,7 @@ _msg_error() {
 # Argument analysis and processing
 options="${@}"
 _opt_short="b:u:lh"
-_opt_long="browser:,url:,live,help,alterlive"
+_opt_long="browser:,url:,live,help,alterlive,aobuta"
 OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}")
 if [[ ${?} != 0 ]]; then
     exit 1
@@ -87,6 +87,10 @@ while true; do
             shift 1
             exit 0
             ;;
+        --aobuta)
+            url="https://ao-buta.com/"
+            shift 1
+            ;;
         --alterlive)
             alterlive=true
             shift 1
@@ -123,7 +127,7 @@ if [[ "${custombrowser}" = false ]]; then
     done
 fi
 
-$(printf "${browser}" "${url}")
+eval $(printf "${browser}" "${url}") &
 
 if [[ "${alterlive}" = true ]]; then
     remove ~/.config/autostart/welcome_page.desktop