• 0 Votes
    4 Posts
    297 Views
    P

    @RapidEdwin08 --- Thank you.
    It worked really well.

    @RapidEdwin08 said in How To Auto Start into Kodi When The Option Is Missing?:

    Modify autostart. sh with the content of the Exec= command pulled from the RetroPie Desktop shortcut.
    Example /opt/retropie/configs/all/autostart.sh:

    kodi
    gnome-terminal --full-screen --hide-menubar -e emulationstation

    There wasn't a file "autostart. sh" at /opt/retropie/configs/all/.
    But it was fine, I just created one in that location and continued with your instructions.

    Again, it worked very well. Thank you.

  • 0 Votes
    22 Posts
    3k Views
    W

    I hade some trouble with this as well so I created a script that keeps the window active and maximized.
    Hope it can help others :)
    https://github.com/william-andersson/rpie_run

  • -1 Votes
    51 Posts
    4k Views
    RazakR

    @mitu @Clyde That was it! I should've known and feel like such a dummy. The correct path is indeed /home/pi/RetroPie/roms/atari2600/Yarrev.bin

    But now I know the all-know runcommand.log :)

    Thanks a trillion! <3

  • 0 Votes
    9 Posts
    592 Views
    D

    Resolved it by configuring retropie to boot to the command line and then i'll edit .bashrc to house the if logic to launch X or ES depending on TOD and of course

    if [ "`tty`" = "/dev/tty1" ]

    Was much easier than I was trying to make it...

    ##### # Set the hours between which PiClock will Launch #### minHour=6 maxHour=9 #Get Current Hour cHour=$(date +%H) # Get current time and time of boot. # calculate minutes since boot cSec=$(date +%s) sSec=$(date +%s -d "$(uptime -s)") uMin=$(( ($cSec - $sSec)/60 )) # Ensure that we are within 2 minutes of boot. This ensures that user can exit ES to the command line # without this script re-launching ES in an endless loop if [[ $uMin -le 2 ]]; then # Ensure this is tty1 if [[ "`tty`" = "/dev/tty1" ]]; then # If between min and max hour then startx and PiClock else execute autorun if [[ $cHour -ge $minHour && $cHour -lt $maxHour ]]; then startx else bash "/opt/retropie/configs/all/autorun.sh" fi fi fi

    The issue I see is trying to drop to the command line from ES in which case I believe it will just launch back into ES... i'm ok with this. Maybe some other unintended consequences but I'll find out soon enough.

    Edit: Added an additional If statement to check for minutes since boot so that one can successfully drop from ES to the CL without