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 use Lubuntu. I downloaded a .tar.bz2 of Sublime Text 2, and extracted it. When I double click the sublime_text executable, a window pops up with "This file is executable. Do you want to execute it?" message. How can I launch Sublime Text without that prompt?

share|improve this question
1  
How exactly do you launch the program? Do you use a launcher, a terminal command, something else? –  mikewhatever Mar 22 '13 at 14:22
    
Double click from PCManFM (default graphical file manager in Lubuntu). Fresh installed OS. –  Vitaly Zdanevich Mar 22 '13 at 14:54
    
I've edited the question to explain the problem non-vague terms. Please correct if anything is not right. –  mikewhatever Mar 22 '13 at 16:38

1 Answer 1

up vote 2 down vote accepted

Apparently, this is the way PCmanFM deals with binary files, but not only PCmanFM. In Linux, a binary file is meant to be run, instead of doubleclicked. For example, in your case, ./sublime_text would be the way to run it. That said, doubleclicking is convinient, so you can create a custom launcher on the desktop or in the menu.

In a terminal window, run leafpad SublimeText.desktop, and pase in the following:

[Desktop Entry]
Type=Application
Icon=/home/vitaly/Sublime\ Text\ 2/Icon/128x128/sublime_text.png
Name=Sublime Text
Comment=Sublime Text       
Categories=Applications
Exec=/home/vitaly/Sublime\ Text\ 2/sublime_text
StartupNotify=true
Terminal=false

I've assumed that your username is vitaly, and that you've extracted the program to your home folder. You'll need to correct the paths if that's not the case.

share|improve this answer
    
I did as you told and when I try run created shortcut I get this message: "Failed to execute child process "/home/vitaly/Sublime-Text-2" (Permission denied) –  Vitaly Zdanevich Mar 22 '13 at 17:01
    
Oh, sorry - I just made a mistake when writing this .desktop file. All work now, thank you! –  Vitaly Zdanevich Mar 22 '13 at 17:23
    
Most welcome. Glad I could help. –  mikewhatever Mar 22 '13 at 17:26

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.