Solved

how to define window size when open a new window?

Posted on 1997-12-10
7
500 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Mailserver setup & redundancy 2 124
LogmeIn using Linux Ubuntu 16.04 6 185
Recover Lacie Edmini data. 11 77
simple bash script needed to unpack tar.gz 4 62
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

751 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