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.objIt 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 dco2. 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 dco5. 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