how to define window size when open a new window?

how to define the size and position of a new window when i open it? for example, i installed netscape 3.01 and when i try to open the news reader  window it just fill the whole screen(well not exactly, the whole visible screen area) and the title bar is way over the top edge and the upper left corner is also invisble over the top edge of screen  so i can't adjust it.
smiley020999Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
from a shells command line every X application understands the  -geometry  option, like>
  xterm -geometry 40x80+10+10

For netscapes private windows you must change the resource file
usually: /usr/lib/X11/app-defaults/Netscape
There is a Geometry section, wel ducumented .. ;-)


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
smiley020999Author Commented:
i just untar the netscape and only put the executable in /root, i believe this is not a good place, so where is the best place so that users can run it? in /usr/bin/X11 or /usr/sbin? becasue you suggest resource file in usr/lib/X11/...  and do i need to move all untared stuffs to /usr/bin... or /usr/sbin...?
0
ahoffmannCommented:
I believe you're right ;)
There are several good places:
  /usr/bin/X11      - because it's an X application
  /usr/local/bin    - because it's a user application
/usr/bin is wrong (in my personal opinion), /usr/sbin is totaly wrong because this dir serves for admin programs.
Keep in mind that the path where you finally install it, should be in your (and your users) PATH environment variable.
See also the README how to move and how to set permissions.

0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

smiley020999Author Commented:
i can't find usr/lib/X11/app-defaults/Netscape because i did't put netscape in /usr/local/bin or /usr/bin/X11, so where should i find this defaults file or should i create one?
0
smiley020999Author Commented:
now i kind of get it by copy few lines of geometry stuff from Netscape.ad file to my .Xdefaults and it looks works, though the upper left corner position is not exactly what i specified but at least the window size is right. now another thing puzzles me is that when i login as user the netscape looks use different settings but i can find it in .Xdefaults( i didn't add lines in user account .Xdefaults file). so do you know where netscape read the setting from? i copied the whole Netscape.ad file to /usr/lib/X11/app-defaults/Netscape, but the geometry part is comment out, so i don't think it can read from there.

0
smiley020999Author Commented:
i mean i can not find it in .Xdefaults, in previous mail
0
ahoffmannCommented:
netscape is a standard X application, so it (should) acts like one: reading class resource file then application resource file and $HOME/.Xdefaults. The order of these depends on the settings of your X server, you can read a couple of books about this.
Well, I know that this doesn't help you very much, but to give you an exact answer you must supply a lot of information about these configuration.

I suggest that you first disable your file in /usr/lib/X11/app-defaults, then $HOME/.Xdefaults . If you still have this strange behavior look in files at $HOME/.netscape directory.

You need to know how X resources are read and where to set them to get closer to problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.