diff --git a/functions/other_functions.sh b/functions/other_functions.sh index 3181f126..81b4b113 100644 --- a/functions/other_functions.sh +++ b/functions/other_functions.sh @@ -511,17 +511,17 @@ finit() { ) | rd_zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \ - --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ - --title "RetroDECK Finishing Initialization" \ - --text="RetroDECK is finishing the initial setup process, please wait." + --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ + --title "RetroDECK Finishing Initialization" \ + --text="RetroDECK is finishing the initial setup process, please wait." create_lock # Inform the user where to put the ROMs and BIOS files rd_zenity --info --no-wrap \ - --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ - --title "RetroDECK Setup Complete" \ - --text="RetroDECK setup is complete!\n\nPlease place your game files in the following directory: $rdhome/roms\n\nand your BIOS files in: $rdhome/bios\n\nYou can use the BIOS checker tool available trough the RetroDECK Configurator\nor refer to the RetroDECK WIKI for more information about the required BIOS files and their proper paths.\n\nYou can now start using RetroDECK." + --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ + --title "RetroDECK Setup Complete" \ + --text="RetroDECK setup is complete!\n\nPlease place your game files in the following directory: $rdhome/roms\n\nand your BIOS files in: $rdhome/bios\n\nYou can use the BIOS checker tool available trough the RetroDECK Configurator\nor refer to the RetroDECK WIKI for more information about the required BIOS files and their proper paths.\n\nYou can now start using RetroDECK." } install_retrodeck_starterpack() { @@ -560,7 +560,15 @@ install_retrodeck_controller_profile() { create_lock() { # creating RetroDECK's lock file and writing the version in the config file version=$hard_version - touch "$lockfile" + if [[ ! -d "$(dirname "$logfile")" ]]; then + mkdir -p "$(dirname "$logfile")" + fi + if [[ -n "$logfile" ]]; then + touch "$logfile" + else + log w "I wished to touch the logfile but the variable is empty, creating a static \"$rdhome/logs/retrodeck.log\" if not already there" + touch "$rdhome/logs/retrodeck.log" || log w "\"$rdhome/logs/retrodeck.log\" already exists, proceeding" + fi conf_write }