• A Basil Plant
    link
    312 hours ago

    I’m unsure whether your formatting messed up, but you shouldn’t have a space between the shebang (#!) and the interpreter path (/bin/bash). Also add a new line before your command:

    #!/bin/bash
    
    gnome-terminal -- sh -c gotop
    

    I tried this on my system (with htop instead of gotop) and it worked.