Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: startup on May 13, 2010, 08:18:50 AM

Title: boot an application at startup
Post by: 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?
Title: Re: boot an application at startup
Post by: Juanito 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
Title: Re: boot an application at startup
Post by: maro 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).
Title: Re: boot an application at startup
Post by: startup 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
Title: Re: boot an application at startup
Post by: startup 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
Title: Re: boot an application at startup
Post by: Juanito 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 &