LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices

Reply
 
Search this Thread
Old 05-13-2012, 08:33 PM   #1
dth4h
Member
 
Registered: Mar 2009
Posts: 51

Rep: Reputation: 10
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.
 
Old 05-13-2012, 11:53 PM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,315

Rep: Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141
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.
 
Old 05-14-2012, 12:33 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Of course it would help if the program was described or the code posted.
 
Old 05-14-2012, 06:11 PM   #4
dth4h
Member
 
Registered: Mar 2009
Posts: 51

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by craigevil View Post
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?
 
Old 05-14-2012, 06:20 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,628

Rep: Reputation: 2530Reputation: 2530Reputation: 2530Reputation: 2530Reputation: 2530Reputation: 2530Reputation: 2530Reputation: 2530Reputation: 2530Reputation: 2530Reputation: 2530
# 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.

.
 
Old 05-14-2012, 06:27 PM   #6
dth4h
Member
 
Registered: Mar 2009
Posts: 51

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by knudfl View Post
# 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.

Mazerun.tar.gz.txt

Last edited by dth4h; 05-14-2012 at 06:47 PM.
 
1 members found this post helpful.
  


Reply

Tags
programing, script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding program name to right-click menu linuxsavar Programming 2 07-28-2011 03:19 PM
One click solution for dialing phone rmcellig Linux - General 3 10-02-2010 02:12 PM
How can I start lampp with a click in ubuntu? kb2tfa Linux - Newbie 1 04-28-2009 01:17 AM
VMware one click start of VM shortcut ddales Linux - Software 1 01-28-2007 03:51 PM
Click on Start icon nothing happens acaverzasi Mandriva 3 12-17-2005 09:22 PM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration