LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   One click program start solution? (http://www.linuxquestions.org/questions/linux-software-2/one-click-program-start-solution-944784/)

dth4h 05-13-2012 08:33 PM

One click program start solution?
 
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.

evo2 05-13-2012 11:53 PM

Hi,

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.

Evo2.

PS. The fact that it is generally inadvisable to run binary only executables attached to random emails is a separate issue.

craigevil 05-14-2012 12:33 AM

Of course it would help if the program was described or the code posted.

dth4h 05-14-2012 06:11 PM

Quote:

Originally Posted by craigevil (Post 4677692)
Of course it would help if the program was described or the code posted.

Do you know of a place I can upload the folder to?

knudfl 05-14-2012 06:20 PM

# 4

"Google Docs" is a good place to keep some files.
And with the right "Share settings", others can download your files.
Suggest : Pack up the folder in a tar package: tar -cf name.tar folder/

Small tar.gz packages can be attached to a post here at LQ.
Just rename "name.tar.gz" to 'name.tar.gz.txt', and use the clip tool
in the Advanced Editor to attach the file.

.

dth4h 05-14-2012 06:27 PM

1 Attachment(s)
Quote:

Originally Posted by knudfl (Post 4678341)
# 4

"Google Docs" is a good place to keep some files.
And with the right "Share settings", others can download your files.
Suggest : Pack up the folder in a tar package: tar -cf name.tar folder/

Small tar.gz packages can be attached to a post here at LQ.
Just rename "name.tar.gz" to 'name.tar.gz.txt', and use the clip tool
in the Advanced Editor to attach the file.

Thanks, I uploaded it to here as a tar.gz.

NOTE: to all people who don't read previous posts. The file is a tar file, not a text file.

Attachment 9667


All times are GMT -5. The time now is 04:46 PM.