summaryrefslogtreecommitdiff
blob: 4e9c4878fbcc9ef2385092d85b2bf9d3a1dfe74b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# HG changeset patch
# Parent cbf7b2d2851314077b9c1ecd6ec95ce51453daf8
diff -r cbf7b2d28513 -r 0350861eeabf ide/launcher/unix/netbeans
--- a/ide/launcher/unix/netbeans	Tue Nov 09 13:44:15 2010 +0100
+++ b/ide/launcher/unix/netbeans	Tue Nov 09 14:21:18 2010 +0100
@@ -169,6 +169,20 @@
     then
         sh=/bin/bash
     fi
+    keychain=`which keychain`
+    if [ -n "$keychain" ]; then
+        $keychain -q
+        . $HOME/.keychain/$HOSTNAME-sh
+        if [ -e $userdir/keychain-keys.txt ]; then
+            for key in `cat $userdir/keychain-keys.txt`; do
+                SSH_ASKPASS=`which x11-ssh-askpass`
+                export SSH_ASKPASS
+                if [ -n "$key" ]; then
+                    keychain $key
+                fi
+            done
+        fi
+    fi
     if [ "${founduserdir}" = "yes" ]; then
         exec $sh "$nbexec" "$@"
     else