Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have downloaded a Smartgit 4.5.5 and trying to use in Ubuntu 13.04. But the problem is when i double click on the script smartgithg.sh it opens on the Gedit. On the previous versions of ubuntu i did not face this issues.

In the previous versions, when i double click on the script it shows me few options like 'Run', 'Run in terminal', 'Close' and so on.

here i would like to mention that the execution permission is enabled for this script. and i can run the script via terminal.

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

As my blog post here suggests

  1. Open file explorer Files.
  2. Press Alt+F10 and select Preferences.
  3. It would show something like this.

    enter image description here

  4. In the Behavior tab, select Run executable text files when they are opened and close it.
share|improve this answer
    
thanks for the solutions, it works :) –  nasirkhan Jun 18 '13 at 18:25
add comment

It's worth knowing that Smartgit can be installed on ubuntu - I heavily use it in Ubuntu 13.04 and 14.04 - like it was a native app (as it was installed from the Software Center).

In fact, in the same folder where you find smartgithg.sh you can find add-menuitem.sh. To install Smartgit you can run it once by doing:

  • cd smartgithg-4_5_5/bin
  • sudo ./add-menuitem.sh

After that you can find Smartgit in the unity list of programs (just type Super and write "Smartgit"), and you can add it on the launcher.

This type of installation has also the advantage that Smartgit downloads and install the last version automatically when an update comes out, so you don't need to uninstall and re-install the new version anymore.

If you want to remove Smartgit run the commands:

  • cd smartgithg-4_5_5/bin
  • sudo ./remove-menuitem.sh

and remove the folder smartgithg-4_5_5. Hope that helps.

share|improve this answer
    
from the previous answer, no i know what was the reason of the changed behavior and i liked this solutions and using this way. thanks –  nasirkhan Jun 18 '13 at 18:29
    
The auto-update feature also works when launching bin/smartgithg.sh directly. –  Mike L. Jun 22 '13 at 9:25
    
It works for ubuntu 14.04. Thanks you. –  PhatHV Jun 19 at 2:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.