Technical article 105761

My desktop window won't open when I double click on the icon under OpenServer 5.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

When I double click on the UNIX icon (or other desktop icons) the window flashes on the desktop and then immediately disappears.

Cause

When a scoterm window is opened, /usr/bin/X11/scoterm reads from the terminal description database (/etc/termcap) and sets the value of the TERMCAP environment variable to the appropriate entry from that database file. If, at the time scoterm is invoked, the TERMCAP env variable is set to a file that does not contain a terminal description entry that is usable by scoterm, scoterm gives the error:

could not find usable termcap entry

The user does not see this error. Instead, the user will see the window flash on the desktop, and then disappear.

Solution

The solution is to unset the TERMCAP environment variable and
export it. This will allow scoterm to read from the default
terminal description database (/etc/termcap) and set the TERMCAP
variable itself. To do this, type the following:
# unset TERMCAP
# export TERMCAP
You will want to find out why and where the TERMCAP variable is
being set. Check the /etc/profile file to see if it is being set
there.  Check the user's .profile and .login files. If you find the
TERMCAP variable is being set to a file other than /etc/termcap,
either delete the line that sets TERMCAP, or set TERMCAP to
/etc/termcap.

If you do not find that the TERMCAP variable is being set anywhere, and you are still experiencing this problem, you may have a corrupt /etc/termcap file. Find a backup copy of /etc/termcap and restore it to your system. If you do not have a backup copy of /etc/termcap, contact SCO Support to acquire one.

See also

termcap(F)

From the Xinuos technical article database, record 105761. Reproduced with permission. The original is at www.sco.com/ta/105761, 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.