Set the environment variables for our tool. We have a rudimentary but working password panel now. Prettification later.

This commit is contained in:
Uli Kusterer
2010-02-19 23:07:06 +01:00
committed by André Berg
parent bca58a7d9c
commit 6c4c40d496
+4
View File
@@ -65,6 +65,10 @@
- (void)applicationDidFinishLaunching:(NSNotification*)notification
{
// Make sure Git's SSH password requests get forwarded to our little UI tool:
setenv( "SSH_ASKPASS", [[[NSBundle mainBundle] pathForResource: @"gitx_askpasswd" ofType: @""] UTF8String], 1 );
setenv( "DISPLAY", "localhost:0", 1 );
[self registerServices];
BOOL hasOpenedDocuments = NO;