Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have created a C program and made an executable under Linux.

Right now, I open the executable by going first to gnome-terminal and then type

./<filename>

I want to create a shortcut icon on the desktop for the same executable. That is, if I click on the program shortcut, it should open gnome-terminal with an "<executable>" automatically.

Is it possible to do this?

share|improve this question

migrated from stackoverflow.com Jun 20 '12 at 11:00

This question came from our site for professional and enthusiast programmers.

    
Not a programming question, voting for moving to Super User. –  unwind Jun 20 '12 at 10:53
    
Have a look at the Desktop Entry specification. –  Jan Hudec Jun 20 '12 at 10:59

1 Answer 1

Right click on your GNOME desktop, choose 'Create Launcher' and then specify the location of your program (assuming it's not in $PATH, if it is, then you don't need to specify the whole path, you can just give )

Make sure you have 'run in terminal' selected, and you'll be able to see the output of the program.

http://www.yolinux.com/TUTORIALS/GNOME.html#LAUNCHER

share|improve this answer
    
I am sorry for not adding more details. I am working in ARM linux platform. I do not have launcher application. –  user1426143 Jun 20 '12 at 12:33

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.