View Single Post

  #3  
Old 08-21-2008, 12:15 PM
Default Re: launch program at start up?

On Thu, 21 Aug 2008 08:56:39 -0700 (PDT), droid wrote:
> Is there a way to launch a program when KDE starts up?


Yes.

> OpenSUSE 10.2, KDE 3.5.5 "release 45.10".


You might try creating a script in ~/.kde/Autostart/,
setting execute permissions,
then add command(s) to do whatever you like.

Example 1:

echo "xterm -fg black -bg wheat &" > ~/.kde/Autostart/startup
chmod +x ~/.kde/Autostart/startup

The echo line put an xterm command in the file startup.
chmod set execute permission.

Upon next login, kde should find the script, startup, in ~/.kde/Autostart/
and launch xterm with the indicated colors.

Example 2:

If you want the app to start in another window/desktop
startup could look something like

dcop kwin default setCurrentDesktop 3 > /dev/null
sleep 2
xterm -fg black -bg wheat &


That would switch to desktop 3
wait 2 seconds
and launch xterm.
Reply With Quote