Re: Another DELIVER warning
davef@xanalys.com writes:
> When I run a delivered CAPI program on another machine, I get a
> warning
>
> ``Warning: Unable to find default fallback resources for application
> class Lispworks´´
>
> According to strace, it tries to open
>
> /usr/local/lib/LispWorks/lib/4-2-0-0/app-defaults/Lispworks
> One solution is to have a resources file on the target machine as
> well, the idea is that the fallback resources are machine specific
> so won't you need that anyway? A different application class (for a
> different filename) can be specified in the call that opens the
> display e.g.
>
> (capi:display (make-instance 'capi:interface)
> :screen '(:application-class "Nils"))
Seems to work fine; setting
capi-motif-library:*default-application-class*
works, too. However, the warning is still omitted unless I put the
file `Nils´ contaning the resources into the LispWorks tree.
According to strace, the warning is printed immediately after the file
isn't found in the LispWorks tree, even though my $HOME directory and
/usr/X11R6/lib/X11/app-defaults are also tried.
Not that this were terribly important, but maybe something for a
future version... :-)
> Another approach, if you want to hardwire the fallbacks, is to read
> the fallback resources at build time, and pass them when you open
> the display at runtime.
>
> ;; at build time
> (setq *fallback-resources* (xt-lib::fallback-resources "Lispworks"))
>
> ;; at run time
> (capi:display (make-instance 'capi:interface)
> :screen `(:fallback-resources ,*fallback-resources*))
>
>
> Does that work for you?
Yes, this one works fine, thanks!
Regards,
--
Nils Gösche
"Don't ask for whom the <CTRL-G> tolls."
PGP key ID 0x0655CFA0