Tiny Core Extensions > TCE Talk

How to start program automatically after system started

<< < (2/2)

wwwronin:
I read the cookbook , if I want to start X-Window based program , the startup script must be placed at ~/.X.d .I try to start editor program when system is loaded, that takes effect. But  it seems that we must change the permission of files put in dir ~/.X.d . Is this correct ?

Juanito:
The permissions should be tc:staff

nitram:
Thanks Misalf, noticed my sudo entry after the fact, remnant of newbier days :)

wwwronin file(s) in ~/.X.d. are NOT scripts, just plain text files named whatever. You can have multiple entries in a single file. Or create multiple files with a single entry in each file. The permissions are of course tc:staff, provided you're running as tc, as it's in your home directory. You do NOT need to  chmod +x  or anything, it's NOT a script.

So you could do...

filename: ~/.X.d./10_editor
entry: editor &

filename: ~/.X.d./20_firefox
entry: firefox &

....or just one simple file named ~/.X.d./startups containing:

editor &
firefox &

wwwronin:
Thanks a lot

wwwronin:
 I use command like this "editor &" ,when system is started ,there a  two editor windows .  Why is that?

Navigation

[0] Message Index

[*] Previous page

Go to full version