+ user= + [[ -z '' ]] ++ id -un + user=pi ++ eval echo '~pi' +++ echo /home/pi + home=/home/pi + ES_DIR=("$home/.emulationstation" "/etc/emulationstation") + readonly ES_DIR + readonly CONFIGDIR=/opt/retropie/configs + CONFIGDIR=/opt/retropie/configs + readonly TMP_BACKGROUND=/tmp/background.png + TMP_BACKGROUND=/tmp/background.png + readonly TMP_LOGO=/tmp/system_logo.png + TMP_LOGO=/tmp/system_logo.png + readonly TMP_LAUNCHING=/tmp/tmp_launching.png + TMP_LAUNCHING=/tmp/tmp_launching.png + readonly FINAL_IMAGE=/tmp/launching + FINAL_IMAGE=/tmp/launching + THEME_DIR= + ES_SYSTEMS_CFG= + FAILED_SYSTEMS=() + FAILED_MSGS=() + THEME= + EXT=png + LOADING_TEXT='NOW LOADING' + PRESS_BUTTON_TEXT='PRESS A BUTTON TO CONFIGURE LAUNCH OPTIONS' + LOADING_TEXT_COLOR=white + PRESS_BUTTON_TEXT_COLOR=gray50 + DESTINATION_DIR=/opt/retropie/configs + SHOW_TIMEOUT=5 + NO_ASK=0 + NO_LOGO=0 + LOGO_BELT=0 + SYSTEMS_ARRAY=() + ALL_SYSTEMS_FLAG=0 + SOLID_BG_COLOR= + SOLID_BG_COLOR_FLAG= + trap safe_exit SIGHUP SIGINT SIGQUIT SIGKILL SIGTERM + check_dep + which convert + [[ -n '' ]] + get_options -t xcade + local dir + for dir in '"${ES_DIR[@]}"' + [[ -f /home/pi/.emulationstation/es_systems.cfg ]] + for dir in '"${ES_DIR[@]}"' + [[ -f /etc/emulationstation/es_systems.cfg ]] + ES_SYSTEMS_CFG=/etc/emulationstation/es_systems.cfg + break + [[ -n -t ]] + case "$1" in + check_argument -t xcade + [[ -z xcade ]] + [[ xcade =~ ^- ]] + shift + local dir= + for dir in '"${ES_DIR[@]}"' + dir=/home/pi/.emulationstation/themes/xcade + [[ -d /home/pi/.emulationstation/themes/xcade ]] + for dir in '"${ES_DIR[@]}"' + dir=/etc/emulationstation/themes/xcade + [[ -d /etc/emulationstation/themes/xcade ]] + THEME_DIR=/etc/emulationstation/themes/xcade + break + [[ -d /etc/emulationstation/themes/xcade ]] + THEME=xcade + shift + [[ -n '' ]] + [[ -z xcade ]] + get_systems + [[ -n '' ]] + local system_list + [[ 0 = \1 ]] ++ list_systems ++ xmlstarlet sel -t -v /systemList/system/name /etc/emulationstation/es_systems.cfg ++ grep -v retropie + system_list='amstradcpc arcade atari2600 atari7800 atarilynx fba fds gamegear gb gba gbc mame-libretro mame-mame4all mastersystem megadrive msx n64 neogeo nes ngp ngpc pcengine psp psx sega32x segacd sg-1000 snes vectrex zxspectrum' + [[ -z amstradcpc arcade atari2600 atari7800 atarilynx fba fds gamegear gb gba gbc mame-libretro mame-mame4all mastersystem megadrive msx n64 neogeo nes ngp ngpc pcengine psp psx sega32x segacd sg-1000 snes vectrex zxspectrum ]] + SYSTEMS_ARRAY=($system_list) + proceed ++ wc -w ++ echo amstradcpc arcade atari2600 atari7800 atarilynx fba fds gamegear gb gba gbc mame-libretro mame-mame4all mastersystem megadrive msx n64 neogeo nes ngp ngpc pcengine psp psx sega32x segacd sg-1000 snes vectrex zxspectrum + local number_of_systems=30 ++ echo 'Theme......................: xcade\n' +++ [[ 30 != 1 ]] +++ echo 'all systems in es_systems.cfg' +++ echo '\n' ++ echo 'System.....................: all systems in es_systems.cfg \n' ++ echo 'Image extension............: png\n' ++ echo '"LOADING" text.............: NOW LOADING\n' ++ echo '"PRESS A BUTTON" text......: PRESS A BUTTON TO CONFIGURE LAUNCH OPTIONS\n' ++ echo '"LOADING" text color.......: white\n' ++ echo '"PRESS A BUTTON" text color: gray50\n' ++ [[ 0 = \1 ]] ++ echo 'Show image timeout.........: 5\n' ++ [[ '' = \1 ]] ++ [[ 0 = \1 ]] ++ echo 'Destination directory......: "/opt/retropie/configs"\n' ++ echo '\n\nDO YOU WANT TO PROCEED?\n' + local 'msg=Theme......................: xcade\n System.....................: all systems in es_systems.cfg \n Image extension............: png\n "LOADING" text.............: NOW LOADING\n "PRESS A BUTTON" text......: PRESS A BUTTON TO CONFIGURE LAUNCH OPTIONS\n "LOADING" text color.......: white\n "PRESS A BUTTON" text color: gray50\n Show image timeout.........: 5\n Destination directory......: "/opt/retropie/configs"\n \n\nDO YOU WANT TO PROCEED?\n' + dialog --title ' SETTINGS SUMMARY ' --yesno 'Theme......................: xcade\n System.....................: all systems in es_systems.cfg \n Image extension............: png\n "LOADING" text.............: NOW LOADING\n "PRESS A BUTTON" text......: PRESS A BUTTON TO CONFIGURE LAUNCH OPTIONS\n "LOADING" text color.......: white\n "PRESS A BUTTON" text color: gray50\n Show image timeout.........: 5\n Destination directory......: "/opt/retropie/configs"\n \n\nDO YOU WANT TO PROCEED?\n' 20 75 + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "amstradcpc"...' 3 60 + create_launching_image + [[ -z amstradcpc ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z amstradcpc ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''amstradcpc'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=amstradcpc ++ [[ -z amstradcpc ]] ++ xml_file=/etc/emulationstation/themes/xcade/amstradcpc/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/amstradcpc/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "amstradcpc" was NOT created.' WARNING: The launching image for "amstradcpc" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "arcade"...' 3 60 + create_launching_image + [[ -z arcade ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z arcade ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''arcade'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=arcade ++ [[ -z arcade ]] ++ xml_file=/etc/emulationstation/themes/xcade/arcade/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/arcade/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "arcade" was NOT created.' WARNING: The launching image for "arcade" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "atari2600"...' 3 60 + create_launching_image + [[ -z atari2600 ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z atari2600 ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''atari2600'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=atari2600 ++ [[ -z atari2600 ]] ++ xml_file=/etc/emulationstation/themes/xcade/atari2600/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/atari2600/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "atari2600" was NOT created.' WARNING: The launching image for "atari2600" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "atari7800"...' 3 60 + create_launching_image + [[ -z atari7800 ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z atari7800 ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''atari7800'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=atari7800 ++ [[ -z atari7800 ]] ++ xml_file=/etc/emulationstation/themes/xcade/atari7800/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/atari7800/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "atari7800" was NOT created.' WARNING: The launching image for "atari7800" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "atarilynx"...' 3 60 + create_launching_image + [[ -z atarilynx ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z atarilynx ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''atarilynx'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=atarilynx ++ [[ -z atarilynx ]] ++ xml_file=/etc/emulationstation/themes/xcade/atarilynx/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/atarilynx/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "atarilynx" was NOT created.' WARNING: The launching image for "atarilynx" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "fba"...' 3 60 + create_launching_image + [[ -z fba ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z fba ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''fba'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=fba ++ [[ -z fba ]] ++ xml_file=/etc/emulationstation/themes/xcade/fba/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/fba/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "fba" was NOT created.' WARNING: The launching image for "fba" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "fds"...' 3 60 + create_launching_image + [[ -z fds ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z fds ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''fds'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=fds ++ [[ -z fds ]] ++ xml_file=/etc/emulationstation/themes/xcade/fds/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/fds/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "fds" was NOT created.' WARNING: The launching image for "fds" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "gamegear"...' 3 60 + create_launching_image + [[ -z gamegear ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z gamegear ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''gamegear'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=gamegear ++ [[ -z gamegear ]] ++ xml_file=/etc/emulationstation/themes/xcade/gamegear/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/gamegear/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "gamegear" was NOT created.' WARNING: The launching image for "gamegear" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "gb"...' 3 60 + create_launching_image + [[ -z gb ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z gb ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''gb'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=gb ++ [[ -z gb ]] ++ xml_file=/etc/emulationstation/themes/xcade/gb/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/gb/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "gb" was NOT created.' WARNING: The launching image for "gb" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "gba"...' 3 60 + create_launching_image + [[ -z gba ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z gba ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''gba'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=gba ++ [[ -z gba ]] ++ xml_file=/etc/emulationstation/themes/xcade/gba/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/gba/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "gba" was NOT created.' WARNING: The launching image for "gba" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "gbc"...' 3 60 + create_launching_image + [[ -z gbc ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z gbc ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''gbc'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=gbc ++ [[ -z gbc ]] ++ xml_file=/etc/emulationstation/themes/xcade/gbc/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/gbc/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "gbc" was NOT created.' WARNING: The launching image for "gbc" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "mame-libretro"...' 3 60 + create_launching_image + [[ -z mame-libretro ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z mame-libretro ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''mame-libretro'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=mame ++ [[ -z mame ]] ++ xml_file=/etc/emulationstation/themes/xcade/mame/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/mame/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "mame-libretro" was NOT created.' WARNING: The launching image for "mame-libretro" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "mame-mame4all"...' 3 60 + create_launching_image + [[ -z mame-mame4all ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z mame-mame4all ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''mame-mame4all'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=mame ++ [[ -z mame ]] ++ xml_file=/etc/emulationstation/themes/xcade/mame/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/mame/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "mame-mame4all" was NOT created.' WARNING: The launching image for "mame-mame4all" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "mastersystem"...' 3 60 + create_launching_image + [[ -z mastersystem ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z mastersystem ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''mastersystem'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=mastersystem ++ [[ -z mastersystem ]] ++ xml_file=/etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' /etc/emulationstation/themes/xcade/mastersystem/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ head -1 ++ data=./art/background.png ++ [[ -n ./art/background.png ]] ++ break 2 ++ [[ -z ./art/background.png ]] ++ [[ background = \t\i\l\e ]] ++ [[ background = \b\g\_\c\o\l\o\r ]] ++ [[ xcade = \c\a\r\b\o\n ]] +++ dirname /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml ++ echo /etc/emulationstation/themes/xcade/mastersystem/./.././art/background.png + background=/etc/emulationstation/themes/xcade/mastersystem/./.././art/background.png + [[ -n '' ]] ++ get_data_from_theme_xml bg_color ++ [[ -z bg_color ]] ++ [[ -z mastersystem ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''mastersystem'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=mastersystem ++ [[ -z mastersystem ]] ++ xml_file=/etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/mastersystem/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml ++ [[ 0 -eq 0 ]] ++ return 1 + bg_color='#' + [[ -n # ]] + [[ # != \# ]] ++ get_data_from_theme_xml tile ++ [[ -z tile ]] ++ [[ -z mastersystem ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''mastersystem'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=mastersystem ++ [[ -z mastersystem ]] ++ xml_file=/etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' /etc/emulationstation/themes/xcade/mastersystem/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ head -1 ++ data=true ++ [[ -n true ]] ++ break 2 ++ [[ -z true ]] ++ [[ tile = \t\i\l\e ]] ++ echo true ++ return + [[ true =~ ^[Tt][Rr][Uu][Ee]$ ]] + convert_cmd+=(-size 1024x576 "tile:") + convert -size 1024x576 tile:/etc/emulationstation/themes/xcade/mastersystem/./.././art/background.png /tmp/tmp_launching.png + [[ 0 = \1 ]] + ret_val=0 + [[ 0 -ne 0 ]] + add_logo + [[ 0 = \1 ]] + local logo= ++ get_data_from_theme_xml logo ++ [[ -z logo ]] ++ [[ -z mastersystem ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''mastersystem'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=mastersystem ++ [[ -z mastersystem ]] ++ xml_file=/etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/mastersystem/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/mastersystem/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ [[ -f /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/mastersystem/./../xcade.xml ++ [[ 0 -eq 0 ]] ++ return 1 + logo= + [[ -z '' ]] + echo 'WARNING: No logo found for "mastersystem" system.' + return 1 + FAILED_SYSTEMS+=($SYSTEM) + FAILED_MSGS+=("failed to add the logo image.") + return 1 + echo 'WARNING: The launching image for "mastersystem" was NOT created.' WARNING: The launching image for "mastersystem" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "megadrive"...' 3 60 + create_launching_image + [[ -z megadrive ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z megadrive ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''megadrive'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=megadrive ++ [[ -z megadrive ]] ++ xml_file=/etc/emulationstation/themes/xcade/megadrive/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/megadrive/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "megadrive" was NOT created.' WARNING: The launching image for "megadrive" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "msx"...' 3 60 + create_launching_image + [[ -z msx ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z msx ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''msx'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=msx ++ [[ -z msx ]] ++ xml_file=/etc/emulationstation/themes/xcade/msx/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/msx/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "msx" was NOT created.' WARNING: The launching image for "msx" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "n64"...' 3 60 + create_launching_image + [[ -z n64 ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z n64 ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''n64'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=n64 ++ [[ -z n64 ]] ++ xml_file=/etc/emulationstation/themes/xcade/n64/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/n64/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/n64/theme.xml ]] +++ head -1 +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' /etc/emulationstation/themes/xcade/n64/theme.xml ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/n64/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/n64/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' /etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ head -1 ++ data=./art/background.png ++ [[ -n ./art/background.png ]] ++ break 2 ++ [[ -z ./art/background.png ]] ++ [[ background = \t\i\l\e ]] ++ [[ background = \b\g\_\c\o\l\o\r ]] ++ [[ xcade = \c\a\r\b\o\n ]] +++ dirname /etc/emulationstation/themes/xcade/n64/./../xcade.xml ++ echo /etc/emulationstation/themes/xcade/n64/./.././art/background.png + background=/etc/emulationstation/themes/xcade/n64/./.././art/background.png + [[ -n '' ]] ++ get_data_from_theme_xml bg_color ++ [[ -z bg_color ]] ++ [[ -z n64 ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''n64'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=n64 ++ [[ -z n64 ]] ++ xml_file=/etc/emulationstation/themes/xcade/n64/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/n64/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/n64/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/n64/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/n64/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/n64/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ [[ -f /etc/emulationstation/themes/xcade/n64/./../xcade.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/n64/./../xcade.xml ++ [[ 0 -eq 0 ]] ++ return 1 + bg_color='#' + [[ -n # ]] + [[ # != \# ]] ++ get_data_from_theme_xml tile ++ [[ -z tile ]] ++ [[ -z n64 ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''n64'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=n64 ++ [[ -z n64 ]] ++ xml_file=/etc/emulationstation/themes/xcade/n64/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/n64/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/n64/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' /etc/emulationstation/themes/xcade/n64/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/n64/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/n64/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' /etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ head -1 ++ data=true ++ [[ -n true ]] ++ break 2 ++ [[ -z true ]] ++ [[ tile = \t\i\l\e ]] ++ echo true ++ return + [[ true =~ ^[Tt][Rr][Uu][Ee]$ ]] + convert_cmd+=(-size 1024x576 "tile:") + convert -size 1024x576 tile:/etc/emulationstation/themes/xcade/n64/./.././art/background.png /tmp/tmp_launching.png + [[ 0 = \1 ]] + ret_val=0 + [[ 0 -ne 0 ]] + add_logo + [[ 0 = \1 ]] + local logo= ++ get_data_from_theme_xml logo ++ [[ -z logo ]] ++ [[ -z n64 ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''n64'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=n64 ++ [[ -z n64 ]] ++ xml_file=/etc/emulationstation/themes/xcade/n64/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/n64/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/n64/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/n64/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/n64/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/n64/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ [[ -f /etc/emulationstation/themes/xcade/n64/./../xcade.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/n64/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/n64/./../xcade.xml ++ [[ 0 -eq 0 ]] ++ return 1 + logo= + [[ -z '' ]] + echo 'WARNING: No logo found for "n64" system.' + return 1 + FAILED_SYSTEMS+=($SYSTEM) + FAILED_MSGS+=("failed to add the logo image.") + return 1 + echo 'WARNING: The launching image for "n64" was NOT created.' WARNING: The launching image for "n64" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "neogeo"...' 3 60 + create_launching_image + [[ -z neogeo ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z neogeo ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''neogeo'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=neogeo ++ [[ -z neogeo ]] ++ xml_file=/etc/emulationstation/themes/xcade/neogeo/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/neogeo/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "neogeo" was NOT created.' WARNING: The launching image for "neogeo" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "nes"...' 3 60 + create_launching_image + [[ -z nes ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z nes ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''nes'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=nes ++ [[ -z nes ]] ++ xml_file=/etc/emulationstation/themes/xcade/nes/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/nes/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/nes/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' /etc/emulationstation/themes/xcade/nes/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/nes/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/nes/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' /etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ head -1 ++ data=./art/background.png ++ [[ -n ./art/background.png ]] ++ break 2 ++ [[ -z ./art/background.png ]] ++ [[ background = \t\i\l\e ]] ++ [[ background = \b\g\_\c\o\l\o\r ]] ++ [[ xcade = \c\a\r\b\o\n ]] +++ dirname /etc/emulationstation/themes/xcade/nes/./../xcade.xml ++ echo /etc/emulationstation/themes/xcade/nes/./.././art/background.png + background=/etc/emulationstation/themes/xcade/nes/./.././art/background.png + [[ -n '' ]] ++ get_data_from_theme_xml bg_color ++ [[ -z bg_color ]] ++ [[ -z nes ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''nes'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=nes ++ [[ -z nes ]] ++ xml_file=/etc/emulationstation/themes/xcade/nes/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/nes/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/nes/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/nes/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/nes/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/nes/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ [[ -f /etc/emulationstation/themes/xcade/nes/./../xcade.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/nes/./../xcade.xml ++ [[ 0 -eq 0 ]] ++ return 1 + bg_color='#' + [[ -n # ]] + [[ # != \# ]] ++ get_data_from_theme_xml tile ++ [[ -z tile ]] ++ [[ -z nes ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''nes'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=nes ++ [[ -z nes ]] ++ xml_file=/etc/emulationstation/themes/xcade/nes/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/nes/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/nes/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' /etc/emulationstation/themes/xcade/nes/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/nes/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/nes/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' /etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ head -1 ++ data=true ++ [[ -n true ]] ++ break 2 ++ [[ -z true ]] ++ [[ tile = \t\i\l\e ]] ++ echo true ++ return + [[ true =~ ^[Tt][Rr][Uu][Ee]$ ]] + convert_cmd+=(-size 1024x576 "tile:") + convert -size 1024x576 tile:/etc/emulationstation/themes/xcade/nes/./.././art/background.png /tmp/tmp_launching.png + [[ 0 = \1 ]] + ret_val=0 + [[ 0 -ne 0 ]] + add_logo + [[ 0 = \1 ]] + local logo= ++ get_data_from_theme_xml logo ++ [[ -z logo ]] ++ [[ -z nes ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''nes'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=nes ++ [[ -z nes ]] ++ xml_file=/etc/emulationstation/themes/xcade/nes/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/nes/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/nes/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/nes/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/nes/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/nes/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ [[ -f /etc/emulationstation/themes/xcade/nes/./../xcade.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/nes/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/nes/./../xcade.xml ++ [[ 0 -eq 0 ]] ++ return 1 + logo= + [[ -z '' ]] + echo 'WARNING: No logo found for "nes" system.' + return 1 + FAILED_SYSTEMS+=($SYSTEM) + FAILED_MSGS+=("failed to add the logo image.") + return 1 + echo 'WARNING: The launching image for "nes" was NOT created.' WARNING: The launching image for "nes" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "ngp"...' 3 60 + create_launching_image + [[ -z ngp ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z ngp ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''ngp'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=ngp ++ [[ -z ngp ]] ++ xml_file=/etc/emulationstation/themes/xcade/ngp/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/ngp/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "ngp" was NOT created.' WARNING: The launching image for "ngp" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "ngpc"...' 3 60 + create_launching_image + [[ -z ngpc ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z ngpc ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''ngpc'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=ngpc ++ [[ -z ngpc ]] ++ xml_file=/etc/emulationstation/themes/xcade/ngpc/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/ngpc/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "ngpc" was NOT created.' WARNING: The launching image for "ngpc" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "pcengine"...' 3 60 + create_launching_image + [[ -z pcengine ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z pcengine ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''pcengine'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=pcengine ++ [[ -z pcengine ]] ++ xml_file=/etc/emulationstation/themes/xcade/pcengine/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/pcengine/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "pcengine" was NOT created.' WARNING: The launching image for "pcengine" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "psp"...' 3 60 + create_launching_image + [[ -z psp ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z psp ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''psp'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=psp ++ [[ -z psp ]] ++ xml_file=/etc/emulationstation/themes/xcade/psp/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/psp/theme.xml ]] ++ return 2 + background= + return 2 + ret_val=2 + [[ 2 -ne 0 ]] + FAILED_SYSTEMS+=($SYSTEM) + [[ 2 -eq 2 ]] + FAILED_MSGS+=("there's no theme.xml for this system") + return 1 + echo 'WARNING: The launching image for "psp" was NOT created.' WARNING: The launching image for "psp" was NOT created. + continue + for SYSTEM in '${SYSTEMS_ARRAY[@]}' + dialog --title ' Please wait ' --infobox 'Generating launching image for "psx"...' 3 60 + create_launching_image + [[ -z psx ]] + rm -f /tmp/background.png /tmp/system_logo.png /tmp/tmp_launching.png + local ret_val + prepare_background + local background= + local bg_color= + convert_cmd=(convert) + local convert_cmd + local colorize= ++ get_data_from_theme_xml background ++ [[ -z background ]] ++ [[ -z psx ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''psx'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=psx ++ [[ -z psx ]] ++ xml_file=/etc/emulationstation/themes/xcade/psx/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/psx/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/psx/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' /etc/emulationstation/themes/xcade/psx/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/psx/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/psx/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/path' /etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ head -1 ++ data=./art/background.png ++ [[ -n ./art/background.png ]] ++ break 2 ++ [[ -z ./art/background.png ]] ++ [[ background = \t\i\l\e ]] ++ [[ background = \b\g\_\c\o\l\o\r ]] ++ [[ xcade = \c\a\r\b\o\n ]] +++ dirname /etc/emulationstation/themes/xcade/psx/./../xcade.xml ++ echo /etc/emulationstation/themes/xcade/psx/./.././art/background.png + background=/etc/emulationstation/themes/xcade/psx/./.././art/background.png + [[ -n '' ]] ++ get_data_from_theme_xml bg_color ++ [[ -z bg_color ]] ++ [[ -z psx ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''psx'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=psx ++ [[ -z psx ]] ++ xml_file=/etc/emulationstation/themes/xcade/psx/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/psx/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/psx/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/psx/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/psx/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/psx/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ [[ -f /etc/emulationstation/themes/xcade/psx/./../xcade.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/color' /etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/psx/./../xcade.xml ++ [[ 0 -eq 0 ]] ++ return 1 + bg_color='#' + [[ -n # ]] + [[ # != \# ]] ++ get_data_from_theme_xml tile ++ [[ -z tile ]] ++ [[ -z psx ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''psx'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=psx ++ [[ -z psx ]] ++ xml_file=/etc/emulationstation/themes/xcade/psx/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/psx/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/psx/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' /etc/emulationstation/themes/xcade/psx/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/psx/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/psx/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'']/tile' /etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ head -1 ++ data=true ++ [[ -n true ]] ++ break 2 ++ [[ -z true ]] ++ [[ tile = \t\i\l\e ]] ++ echo true ++ return + [[ true =~ ^[Tt][Rr][Uu][Ee]$ ]] + convert_cmd+=(-size 1024x576 "tile:") + convert -size 1024x576 tile:/etc/emulationstation/themes/xcade/psx/./.././art/background.png /tmp/tmp_launching.png + [[ 0 = \1 ]] + ret_val=0 + [[ 0 -ne 0 ]] + add_logo + [[ 0 = \1 ]] + local logo= ++ get_data_from_theme_xml logo ++ [[ -z logo ]] ++ [[ -z psx ]] ++ local xml_path= ++ local system_theme_dir= ++ local xml_file= ++ local data= ++ local dir= ++ included_xml=() ++ local included_xml ++ local i= ++ case "$1" in ++ xml_path='/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' ++ [[ 0 = \1 ]] +++ xmlstarlet sel -t -v '/systemList/system[name='\''psx'\'']/theme' /etc/emulationstation/es_systems.cfg ++ system_theme_dir=psx ++ [[ -z psx ]] ++ xml_file=/etc/emulationstation/themes/xcade/psx/theme.xml ++ [[ -f /etc/emulationstation/themes/xcade/psx/theme.xml ]] ++ [[ -f /etc/emulationstation/themes/xcade/psx/theme.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/psx/theme.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes/xcade/psx/theme.xml ++ [[ 1 -eq 0 ]] ++ for i in '"${included_xml[@]}"' +++ dirname /etc/emulationstation/themes/xcade/psx/theme.xml ++ xml_file=/etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ [[ -f /etc/emulationstation/themes/xcade/psx/./../xcade.xml ]] +++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''detailed'\'')]/image[@name='\''logo'\'']/path' /etc/emulationstation/themes/xcade/psx/./../xcade.xml +++ head -1 ++ data= ++ [[ -n '' ]] ++ included_xml=($(xmlstarlet sel -t -v "/theme/include" "$xml_file" 2> /dev/null)) +++ xmlstarlet sel -t -v /theme/include /etc/emulationstation/themes