Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
On Windows there are .exe files. You can just double-click on them and it will start a program and (depending on how your program is built) can be moved between computers with ease without having to do any reconfiguration.
I have not found a way to make my program I make so I can give it to someone in an email or something and then they just double-click on it and it work.
I could have a bash script start my program, but then the user would get that "run/run in terminal/display" prompt instead of just starting right away.
I could have a .desktop file start it (and this looked like it would work because you double-click and then the program starts) but it needs to know the path to the program, so if someone else opened up the program on their computers the path to the files would be different, so that wont work.
So is there something I am missing? What can I do so I can just give a folder with my program and a launcher in it to a user, so they can just double-click and launch the program?
I was thinking about using deb or rpm, but that would be a little extravagant for my small programs. Plus it is not really a click and start thing until after you install it.
hmm, if your program is statically linked there there should be no problem just sending it as a single file. Presumably, the user should know how to run such and executable: either by "double clicking" in some sort of file manager or by running it on the command line.
PS. The fact that it is generally inadvisable to run binary only executables attached to random emails is a separate issue.