Advertisement
Guest User

Untitled

a guest
Jun 4th, 2019
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1.  
  2. 1. First follow the instructions to install RetroPie BGM Player v2.0 @ https://github.com/Naprosnia/RetroPie_BGM_Player
  3.  
  4. 2. The installation will be successful however it'll complain about autostart.sh, sadly the x86 RetroPie version
  5. doesn't actually use or have an autostart.sh which is where the fun begins.
  6.  
  7. 3. What we're gonna do is hijack the .desktop auto-start symlink and tell it to run EmulationStation and play music.
  8. First create an autostart.sh file in your /HOME/.config/autostart and paste the following inside of it:
  9.  
  10. #!/bin/bash
  11. nohup $HOME/RetroPie-BGM-Player/bgm_system.sh -i --autostart >/dev/null 2>&1 &
  12. pid=$!
  13. exec gnome-terminal --full-screen --hide-menubar -e emulationstation
  14.  
  15. 4. Now you need to enter the terminal and go to your /HOME/.config/autostart/ folder and type:
  16.  
  17. sudo nano retropie.desktop
  18.  
  19. and replace the Exec= line with this:
  20.  
  21. Exec=/home/<your user>/.config/autostart/autostart.sh
  22.  
  23. Ctrl-O to save and Ctrl-X to Exit
  24.  
  25. MAKE SURE <YOUR USER> IS CHANGED TO YOUR LOGIN/USER NAME.
  26.  
  27. Now RetroPie will play music on start, however we aren't done yet!
  28.  
  29. 5. The next task is to replace runcommand-onstart.sh and runcommand-onend.sh
  30. so proceed using terminal to your /opt/retropie/configs/all/ folder and type
  31.  
  32. sudo nano runcommand-onstart.sh
  33.  
  34. and replace everything inside with this:
  35.  
  36. bash $HOME/RetroPie-BGM-Player/bgm_system.sh -s
  37. pkill -9 audacious
  38.  
  39. Ctrl-O to save and Ctrl-X to Exit
  40.  
  41. Now type:
  42.  
  43. sudo nano runcommand-onend.sh
  44.  
  45. and replace everything inside with this:
  46.  
  47. bash $HOME/RetroPie-BGM-Player/bgm_system.sh -p
  48. nohup $HOME/RetroPie-BGM-Player/bgm_system.sh -i --autostart >/dev/null 2>&1 &
  49.  
  50. We now have the the music script shutting down on launching an emulator and restarting itself when coming back to
  51. EmulationStation.
  52.  
  53. 6. The only thing left to do is have EmulationStation kill the music on exit, so we will now bring our terminal to the
  54. /opt/retropie/supplementary/emulationstation/ folder and type
  55.  
  56. sudo nano emulationstation.sh
  57.  
  58. Before the exit $ret line insert
  59.  
  60. pkill -9 audacious
  61.  
  62. Save & Exit.
  63.  
  64. That's it! Enjoy.
  65. All credit goes to andrew from the Redream Discord.
  66. - RennyC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement