Solved

how to define window size when open a new window?

Posted on 1997-12-10
7
456 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now