Technical article 104941

deskconfobj fails with mkdir(C) errors on /x/juliad/X11/sco/Desktop/Desktop/apps

OpenServer 5.0.0

Written · Last revised

Problem

When trying to run deskconfobj, it fails with mkdir(C) errors.

For example, when logged in as root, I issue these commands:

# cd /usr/lib/X11/IXI/XDesktop/bin/i3sc0322
# ./deskconfobj -aobj -name spam -src $HOME/objects/spam.obj
It results in these mkdir(C) errors:
mkdir: cannot make directory: /x/juliad/X11/sco/Desktop/Desktop/apps/spam.obj: N
o such file or directory (error 2)
**** deskconfobj error: cannot create /x/juliad/X11/sco/Desktop/Desktop/apps/spa
m.obj
Press <RETURN> to continue

Cause

The following shell environment variables in the deskconfobj script are incorrectly defined:

OBJECT_DIR
RULES_DIR
LARGE_PIXMAP_DIR
SMALL_PIXMAP_DIR

Solution

Create a version of the deskconfobj script that works correctly:

1. Login as root, and copy deskconfobj to a file of a different name in the same directory:

# cd /usr/lib/X11/IXI/XDesktop/bin/i3sc0322
# cp deskconfobj dco

2. Edit the new script, and delete the lines defining the above mentioned environment variables (lines 321-333).

3. The correct definitions of the variables will be found in the same part of the script in comment lines - just uncomment these.

4. Change permissions to ensure the script is executable.  For
   the above example:
# chmod 755 dco

5. The new script should now be used instead of deskconfobj.

The relevant part of the file which looked like:

321     # where Desktop default pixmap and scripts are located for object
322     OBJECT_DIR="/x/juliad/X11/sco/Desktop/Desktop/apps/$NAME.obj"
323     # OBJECT_DIR="/usr/lib/X11/IXI/XDesktop/apps/$NAME.obj"
324
325     # where Desktop rules files are stored
326     RULES_DIR="/x/juliad/X11/sco/Desktop/Desktop/rules/modules"
327     # RULES_DIR="/usr/lib/X11/IXI/XDesktop/rules/modules"
328
329     # where Desktop looks for large and small icons
330     LARGE_PIXMAP_DIR="/x/juliad/X11/sco/Desktop/Desktop/bitmaps/xdt_large"
331     # LARGE_PIXMAP_DIR="/usr/lib/X11/IXI/XDesktop/bitmaps/xdt_large"
332     SMALL_PIXMAP_DIR="/x/juliad/X11/sco/Desktop/Desktop/bitmaps/xdt_small"
333     # SMALL_PIXMAP_DIR="/usr/lib/X11/IXI/XDesktop/bitmaps/xdt_small"
should now read:
321     # where Desktop default pixmap and scripts are located for object
322     OBJECT_DIR="/usr/lib/X11/IXI/XDesktop/apps/$NAME.obj"
323
324     # where Desktop rules files are stored
325     RULES_DIR="/usr/lib/X11/IXI/XDesktop/rules/modules"
326
327     # where Desktop looks for large and small icons
328     LARGE_PIXMAP_DIR="/usr/lib/X11/IXI/XDesktop/bitmaps/xdt_large"
329     SMALL_PIXMAP_DIR="/usr/lib/X11/IXI/XDesktop/bitmaps/xdt_small"

This problem has been reported to Engineering, and will be addressed in a future release of SCO OpenServer.

See also

SCO OpenServer Development System Developer Topics manual, page 250

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