Need to start an application (HelixServer) at boot up

Asked by brian

I am trying to start an application at with a time delay at startup. The application, Helix Server form Real Networks, is typically started from the command line (more than just a call to an executable). The Sessions option did not launch this application for me when i input the command line parameters. Can you let me know what file needs to be modified in order to execute the command to start this application, and also what is the best way to delay this command for a few seconds?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
midnightflash (midnightflash) said :
#1

Create an empty file and open it with f.e. texteditor (gedit) and input the following (changed to your needs of course)

#!/bin/bash
#my super duper script
sleep 60 #you can alter the amount of time here
exec /usr/bin/TheApplicationYouWant

After this make it executable. (right-click - permissions)
Then let this one be started from "sessions".

Greetings

Revision history for this message
Tom (tom6) said :
#2

Or, if like me you prefer gui ways rather than hacking the system, go up to the top taskbar and click on

System - Preferences - Startup Applications - Add

and then 'just' give it a name and enter the command you would normally use to start the application from the command-line, eg "totem" would start up the movie player (well i use mplayer but the standard one is "Totem"). If you are stuck with finding this then go up to the Applications menu but right-click on it instead and then choose "Edit menus", find the usual way you start it from there and choose "preferences" fro it. That should show you what command the menu uses to start the app ;) heheheheheh

Good luck and regards from
Tom :)

Ps some people misuse the term 'hacker' in it's derogatory sense - really meaning "cracker" or something. This is because it's very difficult to write neat elegant code to fix Windows problems and have the coding accepted - such behaviour works against the interests of companies profit margins and so the term is used offensively to make people fear using the elegant answers.

Can you help with this problem?

Provide an answer of your own, or ask brian for more information if necessary.

To post a message you must log in.