summaryrefslogtreecommitdiffstats
path: root/source/dialogs/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/dialogs/script.c')
-rw-r--r--source/dialogs/script.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/dialogs/script.c b/source/dialogs/script.c
index c7cc6d70..d008996e 100644
--- a/source/dialogs/script.c
+++ b/source/dialogs/script.c
@@ -157,6 +157,10 @@ static DmenuScriptEntry *execute_executor ( Mode *sw, char *arg, unsigned int *l
env = g_environ_setenv ( env, "ROFI_RETV", str_value, TRUE);
g_free ( str_value );
+ str_value = g_strdup_printf("%d", (int) getpid());
+ env = g_environ_setenv ( env, "ROFI_OUTSIDE", str_value, TRUE);
+ g_free ( str_value );
+
if ( g_shell_parse_argv ( sw->ed, &argc, &argv, &error ) ) {
argv = g_realloc ( argv, ( argc + 2 ) * sizeof ( char* ) );