RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Running script from RetroPie menu as root?

    Scheduled Pinned Locked Moved Help and Support
    sudoretropiemenuscriptshell
    3 Posts 2 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • madmodder123M
      madmodder123
      last edited by madmodder123

      RetroPie 4.3.9
      RPI 3

      I found a script that someone made to adjust display overscan settings on the fly.
      So I decided to add it to the RetroPie menu section of ES, but when I try to launch it the script does not function because it needs to be ran as root.
      I tried adding sudo in the <path> of the gamelist.xml but that did not work.
      I got the script working with the controller just fine, and I can launch it from the terminal using sudo and it will function without issue, but I can't seem to find a way to launch it with sudo from a shortcut within ES.

      Any ideas?

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @madmodder123
        last edited by

        @madmodder123 Add a script (.sh) with the command in the roms/retropiemenu folder, restart ES and try running it.

        madmodder123M 1 Reply Last reply Reply Quote 0
        • madmodder123M
          madmodder123 @mitu
          last edited by

          @mitu Seems a bit odd to launch a shell script for the sole purpose of launching another shell script, but it works. Thank you

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.