Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I just created a simple application which creates a file on my desktop and writes "HAHA" in it. I made it in C++ and used g++ to get a binary. It works but it's not really "installed" on linux mint.

So I wondered how do I do that? How can I tell linux mint to show this in my menu where all my installed applications are listed?

I heard something about moving it into /usr/bin with a bash script. I moved the application to /usr/bin with terminal but there were no changes (the app is in the directory but it's not displayed in my menu). Or do I have to restart linux mint?

Maybe you could send me a link to a good tutorial. I need some help...

share|improve this question
    
Just move in into ~/bin and ensure that this directory includes in your PATH. Only if your /home mounted with noexec then you should move this file somewhere into /opt/bin –  Eddy_Em Jul 30 '13 at 14:25
    
@Eddy_Em I did that but it doesn't show up in the application list again =/ Or what do you mean exactly with "ensure that this directory includes in your PATH" ? –  Davlog Jul 30 '13 at 14:29
    
@Davlog to achieve that, you need to created the .desktop file with information where you executable file is and maybe a icon. If you want to really "install" then you have to to all of the above and create a deb package. –  BitsOfNix Jul 30 '13 at 14:35
    
@AlexandreAlves well how do I do that? Is there any tutorial for that? –  Davlog Jul 30 '13 at 14:39
    
search online. I don't know what DE you are using or check already a existing .desktop file to see what it should contain. Creting a deb package again the same, a quick search will lead you to several tutorials... –  BitsOfNix Jul 31 '13 at 4:02
add comment

1 Answer

You can either add your executable to /bin or /usr/bin (or any other path in your PATH Environment variable, you can check by entering echo "$PATH") or you can add the directory to your PATH (export PATH=${PATH}:/path/to/dir/with/executables)

share|improve this answer
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.