I added a link to the desktop using Nautilus ("Make Link"):

me@1234:~/Desktop$ ls -al
total 8
drwxr-xr-x  2 alex alex 4096 Sep  8 12:15 .
drwxr-xr-x 42 alex alex 4096 Sep  8 00:22 ..
lrwxrwxrwx  1 alex alex   41 Sep  8 12:14 Android Studio -> /opt/android/android-studio/bin/studio.sh

But when I run it, it just open this file in gedit. What do I do about that? And

ls -al /opt/android/android-studio/bin/studio.sh
-rwxr-xr-x 1 alex alex 6505 Jul 11 23:48 /opt/android/android-studio/bin/studio.sh
  • could you paste there the desktop file too , which you have created. that will help us. – rɑːdʒɑ Sep 8 '13 at 4:29
  • @rajagenupula The OP didn't create a desktop file, only a symlink. – Radu Rădeanu Sep 8 '13 at 4:41

Open Nautilus, go to EditPreferences, select Behavior tab and tick Run executable text files when they are opened or (what I prefer) Ask each time:

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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