I've googled everywhere and cannot figure out how to tell NextStep or OpenStep how to automatically launch a program right after you login and your desktop appears.
I want Fiend to come up automatically. Anyone know?
Thank you!
armus2112
Look around for Unix shell startup scripts. I think the default shell for NeXTSTEP/OPENSTEP is csh (I could be wrong on this), and it would look for the .cshrc startup script in the home directory of the user that just logged in.
I tried what you said..
modifying .cshrc only launches the program if I first run 'Terminal'. So that doesn't work for me :?
Quote from: "armus2112"I tried what you said..
modifying .cshrc only launches the program if I first run 'Terminal'. So that doesn't work for me :?
You're right. .cshrc is only processed if csh is actually started. But there's a .login file that could be what you're looking for.
:) I had tried .login also. Apparently it behaves just like .cshrc does. Only by running Terminal does .login get processed.
OK. One more try: .NeXT/services/.applist
Doesn't the workspace manager have something like a "save desktop" or "save workspace" command, so that the next time you log-in, it will restore the applications you have running?
Assuming you have placed Fiend in your Dock:
Choose Preferences in the Workspace Manager's Info menu and Dock from the pop-up list. Click on the application's name to highlight it and then click the "Start up at login" box. Voila - done.
James
jheis: That works! :D Thank you, I figured it was something simple like that. You'd be surprised how this info is hard to google for.
heh, some stuff hides in plain sight. We need a "NeXT Tips" site :P
I would have said that this type of thing would have appeared in the Sun documentation (which I have links to
here (
http://www.shawcomputing.net/resources/next/documents.html)), but after taking a quick look at the online version of
Using the OpenStep Desktop (
http://docs.sun.com/app/docs/doc/802-2102) I noticed that that aspect of the Workspace Manager preferences was missing.
Odd... but I still think that anyone wishing to gain familiarity with most aspects of NEXTSTEP/OPENSTEP would benefit from that documentation. I've kept printed versions of them handy since around 1998.
Well here's a method which works:
dwrite Workspace LaunchPaths "/NextApps/KPerfMon.app/KPerfMon;echo"
the echo is there just to show that you can put multiple programs on there. They will be launched when Workspace Manager starts.
OK and the other way is using Fiend, and it helps once you have your program icon added to Fiend, hold down shift-ctrl and click the icon, then a window will appear where you can check "AutoLaunch".
FYI
thats pretty cool. I'll have to remember that.
I adore Fiend :) I couldn't live without it.