0

So I'm pretty new to ubuntu and I'm trying to make a simple bash script that all it does is running Rubymine so I don't have to write it down in the command line everytime and also so I can have it on the desktop. The code I have in there is:

    #!/bin/bash
    sudo 'opt/Ruby Mine/bin/rubymine.sh'

It is marked to execute as a program but everytime I try to open it it just opens with gedit.

Noboruu
  • 103

1 Answers1

2

Open Nautilus, Top menu, Edit -> Preferences -> Behaviour

Change View executable text files when they are opened to either Run executable text files when they are opened (warning: Potentially dangerous!) or Ask each time

PhilB
  • 111