WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: boot an application at startup  (Read 2134 times)

Offline startup

  • Newbie
  • *
  • Posts: 11
boot an application at startup
« on: May 13, 2010, 08:18:50 AM »
hey ppl,

i tried ---
How do I start X apps on boot?

Add them to /home/tc/.xsession, backgrounded. They should be added near the end, after waitforX and the window manager. Here's how to start Opera at boot:

opera &

dint get where to add
i dont see window manager
but i can see waitforX

and do i add zsnes &; or zsnes &

please help how to start zsnes on boot up
what is meant by backgrounded?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: boot an application at startup
« Reply #1 on: May 13, 2010, 08:31:04 AM »
Look at ~/.X.d/wbar for the format - create a file in ~/.X.d with the extension name and the appropriate command inside and it will start with x

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: boot an application at startup
« Reply #2 on: May 13, 2010, 06:10:20 PM »
@startup: Regarding your question "what is meant by backgrounded?"

That would be using zsnes & instead of zsnes (whilst zsnes &; would probably result in a sh: syntax error: unexpected ";" error).

Offline startup

  • Newbie
  • *
  • Posts: 11
Re: boot an application at startup
« Reply #3 on: May 14, 2010, 02:23:23 AM »
hey i dint get your solution at all...what do you mean by creating a file .x.d.with extension(what extension???)
please elaborate a little...

what do you mean by appropriate command(which command)

i am in urgent need and stuck in my project, just due to this
plz help

Offline startup

  • Newbie
  • *
  • Posts: 11
Re: boot an application at startup
« Reply #4 on: May 14, 2010, 03:07:48 AM »
i saw thw wbar file
made a file called zsnes inside .x.d
wrote the same line as in wbar with wbar replaced by zsnes

is thta right??
shud it work

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: boot an application at startup
« Reply #5 on: May 14, 2010, 05:04:14 AM »
I'm guessing you need something like this:
Code: [Select]
$ cat /home/tc/.X.d/zsnes
zsnes &