Solved

how to define window size when open a new window?

Posted on 1997-12-10
7
490 Views
Last Modified: 2008-03-06
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.
0
Comment
Question by:smiley020999
  • 4
  • 3
7 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 1634584
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
 

Author Comment

by:smiley020999
ID: 1634585
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1634586
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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:smiley020999
ID: 1634587
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
 

Author Comment

by:smiley020999
ID: 1634588
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
 

Author Comment

by:smiley020999
ID: 1634589
i mean i can not find it in .Xdefaults, in previous mail
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1634590
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

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question