RetroPie forum home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    1. Home
    2. Tags
    3. runcommand.sh
    Log in to post
    • All categories
    • DTEAM

      (solved) runcommand.sh permission denied
      Help and Support • runcommand.sh • • DTEAM

      4
      0
      Votes
      4
      Posts
      75
      Views

      DTEAM

      @dteam

      Solved.

      I deleted the runcommand.sh file with "file manager" in

      /opt/retropie/supplementary/runcommand/runcommand.sh

      I changed the permission from 644 to 755 for

      /home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand/runcommand.sh

      The second runcommand.sh in Home folder is changeable.

      I went back in "RetroPie Setup" and run "update script" and now everything is fine. It copied from home folder to opt folder.
      I got the files from joolswills
      I don't know why it was set 644.

    • cata

      runcommand.sh slow on RPi 1
      Help and Support • runcommand.sh video mode slow • • cata

      1
      0
      Votes
      1
      Posts
      100
      Views

      No one has replied

    • OfficialAzyria

      need help with the runcommand
      Help and Support • runcommand.sh • • OfficialAzyria

      7
      0
      Votes
      7
      Posts
      92
      Views

      Folly

      @officialazyria

      You have to go through this and look if there are systems installed (otherwise install them) :
      2021-08-10-191052_1360x768_scrot.png
      2021-08-10-191059_1360x768_scrot.png
      2021-08-10-191104_1360x768_scrot.png
      2021-08-10-191107_1360x768_scrot.png

    • BenMcLean

      runcommand.sh should run commands
      Help and Support • runcommand.sh emulationstaton retropie os • • BenMcLean

      7
      -4
      Votes
      7
      Posts
      410
      Views

      navi87

      Just add your scripts to the retropie menu, very simple. i never had to make any edits to make it work, just some editing to get the script to have a picture in EmulationStation and description of the script.

      If you want the scripts to appear within your Ports, you might need to include .sh with the filetypes that are supported with Ports even though from memory it should already be set up like that (i cant double checking this right now, currently making a backup of my SSD)

      If you can see the scripts in EmulationStation but theyre just not executing after selecting them, then you will need to chmod +x your sh files.

    • ericsnis

      Remapping buttons for runcommand.sh
      Help and Support • runcommand.sh controller help • • ericsnis

      2
      0
      Votes
      2
      Posts
      208
      Views

      mitu

      @ericsnis said in Remapping buttons for runcommand.sh:

      Is there a way to remap the buttons used for runcommand without messing up the mapping for games?

      runcommand will use the RetroArch configuration file of the gamepad. If you didn't generate one - it's automatically done when you configure the input in EmulationStation - it doesn't which buttons are A/B to enable them in the launch menu.
      Since you copied the ES configuration for input, and didn't run the input mapping dialogue, the RetroArch configuration file hasn't been generated - hence the missing mapping in the launch menu of Runcommand.

    • Langerz82

      RetroPie - custom runcommand.sh - Find Emulator function
      Help and Support • runcommand.sh • • Langerz82

      2
      0
      Votes
      2
      Posts
      117
      Views

      Langerz82

      I have completed the emulator finder. For those interested in using, see: https://gist.github.com/Langerz82/ec7c60edd6b02da78018fa113fda27b0

      Hey just a note: The video output will most likely corrupt and show random pixels, this is normal operation and due to sending the emulator process in the background.

      All the best!

    • ronbo85

      Control Panel Layout images
      Projects and Themes • controllers joystick map runcommand.sh • • ronbo85

      4
      0
      Votes
      4
      Posts
      441
      Views

      mitu

      @ronbo85 said in Control Panel Layout images:

      In bash scripting, how do I get iterative values? (load 'em into arrays?)

      Yes, you can use arrrays.

      And when it comes to single elements (miscDetails) vs. multiple (button labels), would I need individual XMLStarlet calls? (it's a nice, and compact language, but I'm having a hard time wrapping my head around how best to code it).

      My example shows everything in one call, but you can run separate commands if you want to get different values without parsing the output.
      For instance, to get the contents of the miscDetails node:

      xmlstarlet sel -t -m '//game[@romname="roundup"]/miscDetails' -v "text()" control.xml

      If you want to get the how many buttons player1 has :

      xmlstarlet sel -t -m '//game[@romname="roundup"]/player[@number="1"]' -v "@numButtons" -n control.xml
    • ianb

      Runcommand error for any game
      Help and Support • ubuntu mint runcommand.sh • • ianb

      5
      0
      Votes
      5
      Posts
      161
      Views

      ianb

      Thanks, that seems to get rid of that console error. Now the games just hang, will do some more troubleshooting :D

    • LordPato

      runcommand.sh: line 1045: [[: n/a: division by 0
      Help and Support • retropie 4.6 retropie x86 runcommand.sh • • LordPato

      11
      0
      Votes
      11
      Posts
      243
      Views

      Edible

      Solved?

      The problem was that the pi4 has 2 "connected" outputs (given by xrandrs output), this means that the MODE_CUR array is increased by one (HDMI-1 HDMI-2), and MODE_CUR[5] becomes aspect ratio instead of being the refresh rate, my solution basically looks for /primary/ instead of /connected/... but no clue if that will mess things up for others.

      runcommand.sh
      runcommand.sh.diff

    • hissingshark

      runcommand segfaults with PPSSPP and sdl2 > 2.0.8
      Help and Support • osmc ppsspp runcommand.sh segfault • • hissingshark

      10
      0
      Votes
      10
      Posts
      323
      Views

      mitu

      In 2.0.10, it looks like a hint was added (SDL_HINT_GAMECONTROLLERCONFIG_FILE) to point to a user chosen 'gamesdbcontroller.txt' file. It looks like PPSSPP doesn't use this mechanism to load the file, but it might affect how SDL2 works when the game controller API is initialized by the emulator.

      I'll see if a recent source build for PPSSPP triggers this on a RPi, it could also be something that's changed in the emulator since the last binary build in RetroPie.

    • UnluckyForSome

      Runcommand doesn't seem to be obeying modified runcommand.sh
      Help and Support • runcommand splashscreen image runcommand.sh • • UnluckyForSome

      5
      0
      Votes
      5
      Posts
      134
      Views

      UnluckyForSome

      @BuZz editing /opt/retropie/configs/all/runcommand.cfg did the trick, thankyou! :-)