summaryrefslogtreecommitdiff
path: root/src/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty.c')
-rw-r--r--src/pty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pty.c b/src/pty.c
index 6bb93a4..cfd19aa 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -787,6 +787,10 @@ static gboolean
_vte_pty_start_helper(void)
{
int i, tmp[2], tunnel;
+ /* Sanity check. */
+ if (access(LIBEXECDIR "/gnome-pty-helper", X_OK) != 0) {
+ return FALSE;
+ }
/* Create a communication link for use with the helper. */
tmp[0] = open("/dev/null", O_RDONLY);
if (tmp[0] == -1) {