[BACK]Return to patch-src_ssX.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / emulators / ski / patches

Annotation of pkgsrc/emulators/ski/patches/patch-src_ssX.c, Revision 1.1

1.1     ! scole       1: $NetBSD$
        !             2:
        !             3: Find default X resource file.
        !             4:
        !             5: --- src/ssX.c.orig     2008-02-04 23:11:37.000000000 -0500
        !             6: +++ src/ssX.c          2016-04-28 09:45:23.000000000 -0400
        !             7: @@ -49,6 +49,7 @@
        !             8:  #include "coreui.h"
        !             9:  #include "ssDCmd.h"
        !            10:  #include "libcore.h"
        !            11: +#include "line_separator.h"
        !            12:
        !            13:  #if 0
        !            14:  /* Include files not needed for now in the simulator */
        !            15: @@ -174,6 +175,24 @@
        !            16:      Arg args[10];
        !            17:      unsigned i, n;
        !            18:      int argc = 0;
        !            19: +    const char* xenv = "XENVIRONMENT";
        !            20: +    const char* genv = getenv(xenv);
        !            21: +    const char* xski_rc = "XSKI_RESOURCE_FILE";
        !            22: +
        !            23: +    /*
        !            24: +     * XXX how to add pkgsrc paths to X app-default search path?  For
        !            25: +     * simplicity, just set environment variable or give warning if
        !            26: +     * already set.  If XSki app-defaults not found, xski will display
        !            27: +     * jumbled gui but doesn't look like it can run.
        !            28: +     */
        !            29: +    if (genv && (strcmp(genv, xski_rc) != 0)) {
        !            30: +      printf("WARNING: If GUI not displayed correctly, try setting "
        !            31: +             "environment variable \"%s\" to \"%s\"%s",
        !            32: +             xenv, xski_rc, LINE_SEPARATOR);
        !            33: +    }
        !            34: +    else {
        !            35: +      setenv(xenv, xski_rc, 0);
        !            36: +    }
        !            37:
        !            38:      addRegwRsrcOpts();
        !            39:      addDatwRsrcOpts();

CVSweb <webmaster@jp.NetBSD.org>