Run a script when puppy starts

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

Run a script when puppy starts

#1 Post by phantrongnghia »

I want to script below alway run in puppy start:

Code: Select all

#!/bin/sh
export Vietnamese="
 <vbox>
<frame Tiếng Việt>
  <hbox>
   <text>
    <label>1.WORD - Soạn thảo văn bản</label>
   </text>
   <button>
    <input file>/usr/local/lib/X11/mini-icons/MSWordDoc.xpm</input>
    <action>export LANG=vi_VN &</action>
    <action>abiword20 &</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>2.EXCEL - Soạn thảo bảng t

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

open /root/.xinitrc in the texteditor.

Add your script before the line
exec $CURRENTWM

You must add " &" in the end, so that it will not block your desktop.

Example:

Code: Select all

/usr/bin/Vietnamese &
exec $CURRENTWM
Mark

Post Reply