Link to home
Start Free TrialLog in
Avatar of smiley020999
smiley020999

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smiley020999
smiley020999

ASKER

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...?
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.

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?
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.

i mean i can not find it in .Xdefaults, in previous mail
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.