--- ghostscript-9.04/Resource/Init/gs_init.ps.runlibfileifexists 2011-09-14 03:58:19.000000000 +0200 +++ ghostscript-9.04/Resource/Init/gs_init.ps 2011-09-14 03:58:30.000000000 +0200 @@ -674,6 +674,14 @@ { /undefinedfilename signalerror } ifelse } bind def +/runlibfileifexists + { % We don't want to bind 'run' into this procedure, + % since run may get redefined. + findlibfile + { exch pop /run .systemvar exec } + { pop } + ifelse + } bind def /selectdevice { finddevice setdevice .setdefaultscreen } bind def /signalerror % <object> <errorname> signalerror - @@ -842,6 +850,7 @@ } bind def % Temporarily substitute it for the real runlibfile. /.runlibfile /runlibfile load def +/.runlibfileifexists /runlibfileifexists load def /runlibfile /runlibfile0 load def % Create the error handling machinery.