501 |
pluginTable->urlnotify = NewNPP_URLNotifyProc(GCJ_URLNotify); |
pluginTable->urlnotify = NewNPP_URLNotifyProc(GCJ_URLNotify); |
502 |
pluginTable->getvalue = NewNPP_GetValueProc(GCJ_GetValue); |
pluginTable->getvalue = NewNPP_GetValueProc(GCJ_GetValue); |
503 |
|
|
504 |
|
// Add install prefix to PATH. |
505 |
|
char *searchpath = getenv("PATH"); |
506 |
|
char *newpath = NULL; |
507 |
|
|
508 |
|
if (searchpath != NULL) |
509 |
|
{ |
510 |
|
newpath = strcat(searchpath, ":/home/mkoch/local/gcjwebplugin/bin"); |
511 |
|
} |
512 |
|
else |
513 |
|
{ |
514 |
|
newpath = "/home/mkoch/local/gcjwebplugin/bin"; |
515 |
|
} |
516 |
|
|
517 |
|
setenv("PATH", newpath, 1); |
518 |
|
|
519 |
// Create named pipes. |
// Create named pipes. |
520 |
gchar *pipename_in = g_strdup_printf ("/tmp/gcjwebplugin-%i-in", getpid ()); |
gchar *pipename_in = g_strdup_printf ("/tmp/gcjwebplugin-%i-in", getpid ()); |
521 |
gchar *pipename_out = g_strdup_printf ("/tmp/gcjwebplugin-%i-out", getpid ()); |
gchar *pipename_out = g_strdup_printf ("/tmp/gcjwebplugin-%i-out", getpid ()); |