Path: news1.icaen!news.uiowa.edu!news1.chicago.iagnet.net!iagnet.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.internetmci.com!192.61.103.81!eanews1!plnews.pl.unisys.com!not-for-mail From: MA Newsgroups: comp.sys.apple2.gno Subject: Loading Desktop programs at boot up time Date: Mon, 03 Nov 1997 07:19:53 -0700 Organization: Unisys Corporation Lines: 7 Message-ID: <345DDD89.4B97@unisys.com> NNTP-Posting-Host: 192.60.237.61 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Win95; I) In the inittab file, I have a line for loading Finder. If I do a ps, it says that Finder is ready. However, I am lost as to how to attach to that program so I can do things from Finder. The intent is that when the computer boots up, GNO starts running and then Finder comes up on the screen. Marlin Path: news1.icaen!news.uiowa.edu!news1.chicago.iagnet.net!iagnet.net!news.maxwell.syr.edu!howland.erols.net!newshub2.home.com!newshub1.home.com!news.home.com!Supernews60!supernews.com!news.he.net!scanner.worldgate.com!rover.ucs.ualberta.ca!alberta!glyn From: glyn@cs.ualberta.ca (Devin Reade) Newsgroups: comp.sys.apple2.gno Subject: Re: Loading Desktop programs at boot up time Date: 3 Nov 1997 22:45:31 GMT Organization: Myrias Research Corporation Lines: 35 Message-ID: <63lk6b$pk1$1@scapa.cs.ualberta.ca> References: <345DDD89.4B97@unisys.com> NNTP-Posting-Host: menaik.cs.ualberta.ca In article <345DDD89.4B97@unisys.com>, MA wrote: >In the inittab file, I have a line for loading Finder. The short answer is "don't do that". :) initd is intended to run daemons and other batch programs, which the Finder is not. I'm not really sure what state your system is in when you do that, but the Finder was never designed to run without a controlling terminal. >The intent >is that when the computer boots up, GNO starts running and then >Finder comes up on the screen. Normally if you want something run at startup like this, you would put it in your gshrc file. There's a problem in doing this, though, in that the gshrc file is sourced every time a subshell is created (and there's no way, currently, to do a conditional exit for a non-login shell). Therefore, if you ran the Finder from your gshrc file, then you would get errors if you tried to run TMTerm or (after suspending the Finder) any other program that created a subshell. So the only way that I can see to run the finder or any other GUI right now is to type it in at the command line. To avoid having give the full pathname, I add this to my gshrc: alias finder /full/pathname/to/Finder Then when I want to run the Finder, I just type 'finder'. It's not quite what you want, but I can't think of a better solution offhand (with what is currently available). -- Devin Reade gdr@myrias.com Path: news1.icaen!news.uiowa.edu!news1.chicago.iagnet.net!iagnet.net!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!visi.com!thumper.visi.com!markhj01 From: Dragon King Newsgroups: comp.sys.apple2.gno Subject: Re: Loading Desktop programs at boot up time Date: Tue, 4 Nov 1997 03:07:49 -0600 Organization: (missing) Lines: 54 Message-ID: References: <345DDD89.4B97@unisys.com> <63lk6b$pk1$1@scapa.cs.ualberta.ca> Reply-To: Dragon King NNTP-Posting-Host: thumper.visi.com Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII NNTP-Posting-Date: 04 Nov 1997 03:07:54 CST In-Reply-To: <63lk6b$pk1$1@scapa.cs.ualberta.ca> On 3 Nov 1997, Devin Reade wrote: > In article <345DDD89.4B97@unisys.com>, MA wrote: > >In the inittab file, I have a line for loading Finder. > The short answer is "don't do that". :) > initd is intended to run daemons and other batch programs, which the > Finder is not. I'm not really sure what state your system is in when > you do that, but the Finder was never designed to run without a > controlling terminal. How bout using "runover". Doesn't that just attach a program to a terminal? I'd think it would work to use /usr/sbin/runover .ttyco /path/to/finder as the command in the inittab. > >The intent > >is that when the computer boots up, GNO starts running and then > >Finder comes up on the screen. > Normally if you want something run at startup like this, you would > put it in your gshrc file. There's a problem in doing this, though, > in that the gshrc file is sourced every time a subshell is created > (and there's no way, currently, to do a conditional exit for a non-login > shell). Therefore, if you ran the Finder from your gshrc file, > then you would get errors if you tried to run TMTerm or (after > suspending the Finder) any other program that created a subshell. Another thought along this line.. Have a separate login with the finder as the shell. > So the only way that I can see to run the finder or any other GUI > right now is to type it in at the command line. To avoid having > give the full pathname, I add this to my gshrc: > alias finder /full/pathname/to/Finder > Then when I want to run the Finder, I just type 'finder'. > It's not quite what you want, but I can't think of a better solution > offhand (with what is currently available). One final thought and the only one I've even tried. Use xlogin(8). I usually just type */System/Finder when I want to use it. I don't use it often enough to justify aliasing it. I boot straight into GNO as it is. -- \ | _ _|_ _| | Jeff Markham (Dragon King) _ \ _ \ _ \ | -_) | | _` |(_-< | markhj01@visi.com _/ _\ .__/ .__/_|\___| ___|___|\__, |___/ | http://www.visi.com/~markhj01 _| _| ____/ _| ftp.visi.com:/users/markhj01 Path: news1.icaen!news.uiowa.edu!news1.chicago.iagnet.net!iagnet.net!128.223.220.30!logbridge.uoregon.edu!news.uoregon.edu!newsfeed.orst.edu!207.98.65.13.MISMATCH!news.nero.net!flop.ENGR.ORST.EDU!day From: day@flop.ENGR.ORST.EDU (Evan Day) Newsgroups: comp.sys.apple2.gno Subject: Re: Loading Desktop programs at boot up time Date: 5 Nov 1997 20:02:23 GMT Organization: Computer Science Department, Oregon State University Lines: 28 Message-ID: <63qjcf$122$1@news.NERO.NET> References: <345DDD89.4B97@unisys.com> <63lk6b$pk1$1@scapa.cs.ualberta.ca> NNTP-Posting-Host: flop.engr.orst.edu In article <63lk6b$pk1$1@scapa.cs.ualberta.ca>, Devin Reade wrote: >In article <345DDD89.4B97@unisys.com>, MA wrote: >>In the inittab file, I have a line for loading Finder. > >So the only way that I can see to run the finder or any other GUI >right now is to type it in at the command line. To avoid having >give the full pathname, I add this to my gshrc: > > alias finder /full/pathname/to/Finder > The way I used to do this was to have a separate user account in /etc/passwd that had the finder as it's shell, something like (from memory...) finder::n1:n2:GS Finder:/path/to/finder:/path/to/finder/finder (or start) with n1 and n2 begin uid and gid as appropriate. I used to have several desktop apps I did this with, particularly the bank 0 hogs like AWGS and Hypercard GS. Even then bank 0 would get fragmented after a while and I'd have to reboot. I suppose I should point out that this is only going to help if you are running the multi-user package... -- i have no .sig - wait, i guess i do