FAQ:How do I change and add startup scripts: Difference between revisions
From Yocto Project
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
Don't forget to run your app as a background process | Don't forget to run your app as a background process | ||
For example: | For example, the following code will start the fifteen game: | ||
<pre> | |||
#matchbox-desktop & | #matchbox-desktop & | ||
Line 23: | Line 23: | ||
exec matchbox-window-manager -theme Sato -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@ | exec matchbox-window-manager -theme Sato -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@ | ||
</pre> | |||
[[Category:FAQ]] [[Category:FAQ-open]] | [[Category:FAQ]] [[Category:FAQ-open]] |
Latest revision as of 23:55, 29 March 2012
Q: How do I change and add startup scripts?
A: Edit meta/recipes-sato/matchbox-sato/matchbox-session-sato/session. Of course, if you have your own meta-layer, append the matchbox-session-sato_0.1.bb recipe.
Disable 'matchbox-desktop' and 'matchbox-panel', however, do not disable 'exec matchbox-window-manager ...'
Don't forget to run your app as a background process
For example, the following code will start the fifteen game:
#matchbox-desktop & # Lines containing feature-[foo] are removed at build time if the machine # doesn't have the feature "foo". #START_APPLETS=showdesktop,windowselector #END_APPLETS=clock,battery,systray,startup-notify,notify #END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone #matchbox-panel --titlebar --start-applets $START_APPLETS --end-applets $END_APPLETS & /usr/games/fifteen & exec matchbox-window-manager -theme Sato -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@