From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6cee3645cbee801d X-Google-Attributes: gidfee84,public From: marek.pola@mailbox.swipnet.se (Marek Pola) Subject: Re: Umask and Session Manager Date: 1996/04/02 Message-ID: <4js6aa$6i4@mn5.swip.net>#1/1 X-Deja-AN: 145518411 references: <427cc$8132f.d1@news.leg.wa.gov> organization: - nntp-posting-user: ef6973175ca49332904493b4eec7540a newsgroups: comp.unix.osf.osf1 In article <427cc$8132f.d1@news.leg.wa.gov>, fry_ja@leg.wa.gov (Jason Fry) wrote: >I am connecting to a Digital Unix ver 3.2 box using Reflection X, >X-Windows software. I am running the xdm server on the Unix box. I >have set the umask different than the system default in the >/etc/profile. This works correctly as long as I start programs from >the Unix prompt. Whenever I start a program from the Session Manager >pulldown menu and save/create a file, the umask is not the one I set. >It uses the system default umask. It's like Session Manager ignores >the umask that I set. Anyone have an idea how I can make Session >Manager aware of the new umask? > >Thanks for any help/clues/pointers! > >Jason Fry >Washington State Legislative Service Center I've also had problems with Session Manager, but not with umask but with PATHs to application directories. It seems that session manager does not run the profile (or .cshrc and .login if you use csh) before starting up the application. One solution that works, but is somewhat crude, it to execute the $HOME/.profile before running the command; insert like: sh -c ".profile; your_command" in the session managers options/define menu. (I'm not 100% sure about the "-c". I'm at home. Look in man pages for sh). Good luck! Marek Pola Tetra Pak Lund, Sweden ------------------------------------------------ "Jim, his brains's gone!" - Dr McCoy, Star Trek.