Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!kepler1!fcaggian From: fcaggian@kepler.com (Frank Caggiano) Newsgroups: comp.lang.eiffel Subject: Re: X resource managment with source Summary: Bug in xresource.c Keywords: resources Message-ID: <448@kepler1.kepler.com> Date: 28 Nov 90 16:21:56 GMT References: <447@kepler1.kepler.com> Organization: Kepler Financial Mgmt., Setuket, NY Lines: 34 There is a bug in xresource.c which prevents the command line from being parsed if a program is run using a leading path. To correct this problem do: In xresource.c move the call to XrmParseCommand() to AFTER the test of argv[0] for a leading path. In the call to XrmParseCommand(), replace argv[0] with s; The code should look like this: XrmInitialize(); /* Open X data base routiines */ /* * Set the command name of the application ..... */ if((s = rindex(*cp,'/')) != NULL) /* argv[0] has pathname, strip it */ s++; else s = *cp; XrmParseCommand(&cmdDB, opTable, opTableEntries, s, &n, args); /* Xlib call */ Recompile and relink. Frank Caggiano -- Frank Caggiano INTERNET: fcaggian@kepler.com Kepler Financial Management, Ltd. UUCP: ..!uunet!kepler1!fcaggian 100 North Country Rd. fax: (516) 751-8678 Sekauket, NY 11733 voice: (516) 689-6300