# 6.10. How do I launch applications in a particular desktop?

KDE pre-1.1 comes with a program called kstart. You can use it in a .kdelnk file like this:

     Name=Netscape
     Exec=kstart "netscape" -window ".*Netscape.*" -desktop 2 -maximize
     BinaryPattern=netscape;
     Icon=netscape.xpm
     Path=
     Type=Application
     Terminal=0

Use a shell script to do it. If you have KDE 1.0, the script should look something like this:

     kwmcom desktop2 (or desktop3, desktop4, whatever)
     netscape

Please note that this has the (undesirable) effect of leaving you in desktop2 while it's executing and also once it's done executing.

(On the off chance you haven't used shell scripts, they're basically just a text file you've run "chmod +x <filename>" on. They're a Linux version of a DOS batch file, but, of course, better.)

If you use KDE 1.1 then you don't necessarily even need a shell script. You just need to run the following:

     kstart "netscape" -desktop 1 -activate