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