+ 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 art-book
+ local dir
+ for dir in '"${ES_DIR[@]}"'
+ [[ -f /home/pi/.emulationstation/es_systems.cfg ]]
+ ES_SYSTEMS_CFG=/home/pi/.emulationstation/es_systems.cfg
+ break
+ [[ -n -t ]]
+ case "$1" in
+ check_argument -t art-book
+ [[ -z art-book ]]
+ [[ art-book =~ ^- ]]
+ shift
+ local dir=
+ for dir in '"${ES_DIR[@]}"'
+ dir=/home/pi/.emulationstation/themes/art-book
+ [[ -d /home/pi/.emulationstation/themes/art-book ]]
+ THEME_DIR=/home/pi/.emulationstation/themes/art-book
+ break
+ [[ -d /home/pi/.emulationstation/themes/art-book ]]
+ THEME=art-book
+ shift
+ [[ -n '' ]]
+ [[ -z art-book ]]
+ get_systems
+ [[ -n '' ]]
+ local system_list
+ [[ 0 = \1 ]]
++ list_systems
++ xmlstarlet sel -t -v /systemList/system/name /home/pi/.emulationstation/es_systems.cfg
++ grep -v retropie
+ system_list='nes
mastersystem
megadrive
snes
pcengine
segacd
mame-libretro
daphne
amstradcpc
arcade
atari2600
atari7800
atarilynx
fba
fds
gamegear
gb
gba
gbc
mame-mame4all
msx
n64
neogeo
ngp
ngpc
psp
psx
sega32x
sg-1000
vectrex
zxspectrum
ports'
+ [[ -z nes
mastersystem
megadrive
snes
pcengine
segacd
mame-libretro
daphne
amstradcpc
arcade
atari2600
atari7800
atarilynx
fba
fds
gamegear
gb
gba
gbc
mame-mame4all
msx
n64
neogeo
ngp
ngpc
psp
psx
sega32x
sg-1000
vectrex
zxspectrum
ports ]]
+ SYSTEMS_ARRAY=($system_list)
+ proceed
++ wc -w
++ echo nes mastersystem megadrive snes pcengine segacd mame-libretro daphne amstradcpc arcade atari2600 atari7800 atarilynx fba fds gamegear gb gba gbc mame-mame4all msx n64 neogeo ngp ngpc psp psx sega32x sg-1000 vectrex zxspectrum ports
+ local number_of_systems=32
++ echo 'Theme......................: art-book\n'
+++ [[ 32 != 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......................: art-book\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......................: art-book\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 "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'\'' or @name='\''SystemBackground'\'']/path'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''nes'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=nes
++ [[ -z nes ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/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 /home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ background=
+ [[ -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'\'' or @name='\''SystemBackground'\'']/color'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''nes'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=nes
++ [[ -z nes ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/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 /home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ 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'\'' or @name='\''SystemBackground'\'']/tile'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''nes'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=nes
++ [[ -z nes ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/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 /home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/nes/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/nes/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/nes/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ [[ '' =~ ^[Tt][Rr][Uu][Ee]$ ]]
+ convert_cmd+=(-resize 'x576' " ")
+ convert -resize x576 /tmp/tmp_launching.png
convert: no images defined `/tmp/tmp_launching.png' @ error/convert.c/ConvertImageCommand/3210.
+ return 1
+ ret_val=1
+ [[ 1 -ne 0 ]]
+ FAILED_SYSTEMS+=($SYSTEM)
+ [[ 1 -eq 2 ]]
+ FAILED_MSGS+=("failed to prepare the background 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 "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'\'' or @name='\''SystemBackground'\'']/path'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''mastersystem'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=mastersystem
++ [[ -z mastersystem ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/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 /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ background=
+ [[ -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'\'' or @name='\''SystemBackground'\'']/color'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''mastersystem'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=mastersystem
++ [[ -z mastersystem ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/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 /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ 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'\'' or @name='\''SystemBackground'\'']/tile'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''mastersystem'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=mastersystem
++ [[ -z mastersystem ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/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 /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mastersystem/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mastersystem/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mastersystem/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ [[ '' =~ ^[Tt][Rr][Uu][Ee]$ ]]
+ convert_cmd+=(-resize 'x576' " ")
+ convert -resize x576 /tmp/tmp_launching.png
convert: no images defined `/tmp/tmp_launching.png' @ error/convert.c/ConvertImageCommand/3210.
+ return 1
+ ret_val=1
+ [[ 1 -ne 0 ]]
+ FAILED_SYSTEMS+=($SYSTEM)
+ [[ 1 -eq 2 ]]
+ FAILED_MSGS+=("failed to prepare the background 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'\'' or @name='\''SystemBackground'\'']/path'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''megadrive'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=genesis
++ [[ -z genesis ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/genesis/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 /home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ background=
+ [[ -n '' ]]
++ get_data_from_theme_xml bg_color
++ [[ -z bg_color ]]
++ [[ -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'\'' or @name='\''SystemBackground'\'']/color'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''megadrive'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=genesis
++ [[ -z genesis ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/genesis/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 /home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ bg_color='#'
+ [[ -n # ]]
+ [[ # != \# ]]
++ get_data_from_theme_xml tile
++ [[ -z tile ]]
++ [[ -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'\'' or @name='\''SystemBackground'\'']/tile'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''megadrive'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=genesis
++ [[ -z genesis ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/genesis/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 /home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/genesis/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/genesis/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/genesis/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ [[ '' =~ ^[Tt][Rr][Uu][Ee]$ ]]
+ convert_cmd+=(-resize 'x576' " ")
+ convert -resize x576 /tmp/tmp_launching.png
convert: no images defined `/tmp/tmp_launching.png' @ error/convert.c/ConvertImageCommand/3210.
+ return 1
+ ret_val=1
+ [[ 1 -ne 0 ]]
+ FAILED_SYSTEMS+=($SYSTEM)
+ [[ 1 -eq 2 ]]
+ FAILED_MSGS+=("failed to prepare the background image.")
+ 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 "snes"...' 3 60
+ create_launching_image
+ [[ -z snes ]]
+ 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 snes ]]
++ 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'\'' or @name='\''SystemBackground'\'']/path'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''snes'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=snes
++ [[ -z snes ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/snes/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 /home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml ]]
++ [[ -z '' ]]
++ return
+ background=
+ [[ -n '' ]]
++ get_data_from_theme_xml bg_color
++ [[ -z bg_color ]]
++ [[ -z snes ]]
++ 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'\'' or @name='\''SystemBackground'\'']/color'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''snes'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=snes
++ [[ -z snes ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/snes/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 /home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml ]]
++ [[ -z '' ]]
++ return
+ bg_color='#'
+ [[ -n # ]]
+ [[ # != \# ]]
++ get_data_from_theme_xml tile
++ [[ -z tile ]]
++ [[ -z snes ]]
++ 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'\'' or @name='\''SystemBackground'\'']/tile'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''snes'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=snes
++ [[ -z snes ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/snes/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 /home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/snes/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/snes/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/snes/./.././../_inc/templates/landscape.xml ]]
++ [[ -z '' ]]
++ return
+ [[ '' =~ ^[Tt][Rr][Uu][Ee]$ ]]
+ convert_cmd+=(-resize 'x576' " ")
+ convert -resize x576 /tmp/tmp_launching.png
convert: no images defined `/tmp/tmp_launching.png' @ error/convert.c/ConvertImageCommand/3210.
+ return 1
+ ret_val=1
+ [[ 1 -ne 0 ]]
+ FAILED_SYSTEMS+=($SYSTEM)
+ [[ 1 -eq 2 ]]
+ FAILED_MSGS+=("failed to prepare the background image.")
+ return 1
+ echo 'WARNING: The launching image for "snes" was NOT created.'
WARNING: The launching image for "snes" 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'\'' or @name='\''SystemBackground'\'']/path'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''pcengine'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=tg16
++ [[ -z tg16 ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/tg16/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 /home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
+++ head -1
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ background=
+ [[ -n '' ]]
++ get_data_from_theme_xml bg_color
++ [[ -z bg_color ]]
++ [[ -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'\'' or @name='\''SystemBackground'\'']/color'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''pcengine'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=tg16
++ [[ -z tg16 ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/tg16/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 /home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ bg_color='#'
+ [[ -n # ]]
+ [[ # != \# ]]
++ get_data_from_theme_xml tile
++ [[ -z tile ]]
++ [[ -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'\'' or @name='\''SystemBackground'\'']/tile'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''pcengine'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=tg16
++ [[ -z tg16 ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/tg16/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 /home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/tg16/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/tg16/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/tg16/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ [[ '' =~ ^[Tt][Rr][Uu][Ee]$ ]]
+ convert_cmd+=(-resize 'x576' " ")
+ convert -resize x576 /tmp/tmp_launching.png
convert: no images defined `/tmp/tmp_launching.png' @ error/convert.c/ConvertImageCommand/3210.
+ return 1
+ ret_val=1
+ [[ 1 -ne 0 ]]
+ FAILED_SYSTEMS+=($SYSTEM)
+ [[ 1 -eq 2 ]]
+ FAILED_MSGS+=("failed to prepare the background image.")
+ 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 "segacd"...' 3 60
+ create_launching_image
+ [[ -z segacd ]]
+ 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 segacd ]]
++ 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'\'' or @name='\''SystemBackground'\'']/path'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''segacd'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=segacd
++ [[ -z segacd ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/segacd/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 /home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ background=
+ [[ -n '' ]]
++ get_data_from_theme_xml bg_color
++ [[ -z bg_color ]]
++ [[ -z segacd ]]
++ 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'\'' or @name='\''SystemBackground'\'']/color'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''segacd'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=segacd
++ [[ -z segacd ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/segacd/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 /home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ bg_color='#'
+ [[ -n # ]]
+ [[ # != \# ]]
++ get_data_from_theme_xml tile
++ [[ -z tile ]]
++ [[ -z segacd ]]
++ 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'\'' or @name='\''SystemBackground'\'']/tile'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''segacd'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=segacd
++ [[ -z segacd ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/segacd/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 /home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/segacd/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/segacd/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/segacd/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ [[ '' =~ ^[Tt][Rr][Uu][Ee]$ ]]
+ convert_cmd+=(-resize 'x576' " ")
+ convert -resize x576 /tmp/tmp_launching.png
convert: no images defined `/tmp/tmp_launching.png' @ error/convert.c/ConvertImageCommand/3210.
+ return 1
+ ret_val=1
+ [[ 1 -ne 0 ]]
+ FAILED_SYSTEMS+=($SYSTEM)
+ [[ 1 -eq 2 ]]
+ FAILED_MSGS+=("failed to prepare the background image.")
+ return 1
+ echo 'WARNING: The launching image for "segacd" was NOT created.'
WARNING: The launching image for "segacd" 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'\'' or @name='\''SystemBackground'\'']/path'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''mame-libretro'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=mame
++ [[ -z mame ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/mame/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 /home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ background=
+ [[ -n '' ]]
++ get_data_from_theme_xml bg_color
++ [[ -z bg_color ]]
++ [[ -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'\'' or @name='\''SystemBackground'\'']/color'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''mame-libretro'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=mame
++ [[ -z mame ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/mame/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 /home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ bg_color='#'
+ [[ -n # ]]
+ [[ # != \# ]]
++ get_data_from_theme_xml tile
++ [[ -z tile ]]
++ [[ -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'\'' or @name='\''SystemBackground'\'']/tile'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''mame-libretro'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=mame
++ [[ -z mame ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/mame/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 /home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mame/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/mame/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/mame/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ [[ '' =~ ^[Tt][Rr][Uu][Ee]$ ]]
+ convert_cmd+=(-resize 'x576' " ")
+ convert -resize x576 /tmp/tmp_launching.png
convert: no images defined `/tmp/tmp_launching.png' @ error/convert.c/ConvertImageCommand/3210.
+ return 1
+ ret_val=1
+ [[ 1 -ne 0 ]]
+ FAILED_SYSTEMS+=($SYSTEM)
+ [[ 1 -eq 2 ]]
+ FAILED_MSGS+=("failed to prepare the background image.")
+ 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 "daphne"...' 3 60
+ create_launching_image
+ [[ -z daphne ]]
+ 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 daphne ]]
++ 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'\'' or @name='\''SystemBackground'\'']/path'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''daphne'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=daphne
++ [[ -z daphne ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/daphne/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/daphne/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/daphne/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/daphne/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 /home/pi/.emulationstation/themes/art-book/daphne/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/daphne/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/daphne/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/daphne/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/daphne/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/daphne/./.././../_inc/templates/portrait.xml
+++ head -1
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/path' /home/pi/.emulationstation/themes/art-book/daphne/./.././../_inc/templates/portrait.xml
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/daphne/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ background=
+ [[ -n '' ]]
++ get_data_from_theme_xml bg_color
++ [[ -z bg_color ]]
++ [[ -z daphne ]]
++ 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'\'' or @name='\''SystemBackground'\'']/color'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''daphne'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=daphne
++ [[ -z daphne ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/daphne/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/daphne/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/daphne/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/daphne/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 /home/pi/.emulationstation/themes/art-book/daphne/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/daphne/theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/daphne/./../theme.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/daphne/./../theme.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.emulationstation/themes/art-book/daphne/./../theme.xml
++ xml_file=/home/pi/.emulationstation/themes/art-book/daphne/./.././../_inc/templates/portrait.xml
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/color' /home/pi/.emulationstation/themes/art-book/daphne/./.././../_inc/templates/portrait.xml
+++ head -1
++ data=
++ [[ -n '' ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/daphne/./.././../_inc/templates/portrait.xml ]]
++ [[ -z '' ]]
++ return
+ bg_color='#'
+ [[ -n # ]]
+ [[ # != \# ]]
++ get_data_from_theme_xml tile
++ [[ -z tile ]]
++ [[ -z daphne ]]
++ 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'\'' or @name='\''SystemBackground'\'']/tile'
++ [[ 0 = \1 ]]
+++ xmlstarlet sel -t -v '/systemList/system[name='\''daphne'\'']/theme' /home/pi/.emulationstation/es_systems.cfg
++ system_theme_dir=daphne
++ [[ -z daphne ]]
++ xml_file=/home/pi/.emulationstation/themes/art-book/daphne/theme.xml
++ [[ -f /home/pi/.emulationstation/themes/art-book/daphne/theme.xml ]]
++ [[ -f /home/pi/.emulationstation/themes/art-book/daphne/theme.xml ]]
+++ xmlstarlet sel -t -v '/theme/view[contains(@name,'\''system'\'')]/image[@name='\''background'\'' or @name='\''SystemBackground'\'']/tile' /home/pi/.emulationstation/themes/art-book/daphne/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 /home/pi/.emulationstation/themes/art-book/daphne/theme.xml
++ [[ 2 -eq 0 ]]
++ for i in '"${included_xml[@]}"'
+++ dirname /home/pi/.em