Technical article 109192

How can a graphical Merge Windows session be started from a .profile?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

How can I start up a graphical Merge Windows session using the Merge X/Windows driver from a .profile?

Solution

Edit the user's .profile. Change the PATH environment variable to search the /usr/bin/X11 directory and add the following two lines to the end of the .profile so that it looks similar to this:

PATH=$PATH:$HOME/bin:/usr/bin/X11:. MERGE_AUTOBACKGROUND=off ; export MERGE_AUTOBACKGROUND exec xinit /usr/bin/win +x -- :1

This will start Windows 3.11 or Windows 95 on the second X server display when this user logs in.

(For Merge 3.2.2 users, the path for Windows is /bin/win.)

Windows 3.11 can be configured to fill the entire screen by setting the Window Size in the Display section of the Personal Merge Session Configuration for Windows via the Merge Setup icon in the Merge Tools Window. Alternatively, mrgconfig(MERGE) can be used to set the values of windowswidth, windowsheight and windowsizeauto.

To configure Windows 95 to utilize the entire screen:

Right-Click on the Windows 95 Desktop->
Properties
Settings

Then change the Desktop area to use the same resolution as the X server. This will, however, result in the Status bar and the Start bar disappearing from the screen. This occurs because the Merge menu bar along the top uses up some of the space. To rectify this, edit the Windows display INF file:

C:\WINDOWS\INF\MSDISP.INF
(This is typically the UNIX file $HOME/merge/windows/inf/msdisp.inf)

Then add additional resolutions to the [VW_AddReg] section. By default, this section contains 11 different resolutions for each of the 5 color depths (1, 4, 8, 16, 32). The following resolutions have been found to provide a reasonable display, which allows for the Start Bar and Status Bar to be visible on the screen:

640x430   (for a 640x480 X display)
800x546   (for a 800x600 X display)
1024x710  (for a 1024x768 X display)
1280x965  (for a 1280x1024 X display)
NOTE:     For other possible resolutions it is necessary to estimate the
          vertical resolution by subtracting 50 to 60 pixels and placing
          these resolutions in the msdisp.inf file as described in the
          procedure below.

To add the four possible resolutions mentioned above, enter these lines into the msdisp.inf file within the [VW_AddReg] section:

HKR,"MODES\1\640x430"
HKR,"MODES\1\800x546"
HKR,"MODES\1\1024x710"
HKR,"MODES\1\1280x965"
HKR,"MODES\4\640x430"
HKR,"MODES\4\800x546"
HKR,"MODES\4\1024x710"
HKR,"MODES\4\1280x965"
HKR,"MODES\8\640x430"
HKR,"MODES\8\800x546"
HKR,"MODES\8\1024x710"
HKR,"MODES\8\1280x965"
HKR,"MODES\16\640x430"
HKR,"MODES\16\800x546"
HKR,"MODES\16\1024x710"
HKR,"MODES\16\1280x965"
HKR,"MODES\32\640x430"
HKR,"MODES\32\800x546"
HKR,"MODES\32\1024x710"
HKR,"MODES\32\1280x965"

For the changes to take effect, take these steps:

Right Click on the Win95 Desktop-> Properties Settings Change Display Type Change Adapter Type

Windows 95 rebuilds the driver information database at this
point because it notices that msdisp.inf has changed. Re-select
Merge Windows/X (Win 95 version) as the driver and click OK.  Then
restart Windows 95 for the new settings to become available.

From the Xinuos technical article database, record 109192. Reproduced with permission. The original is at www.sco.com/ta/109192, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.