Skip to content
Snippets Groups Projects
Commit 316b855b authored by George Nachman's avatar George Nachman
Browse files

Add an advanced setting to kill sessions on logout to try to prevent issue 4147

parent cf291bd7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -183,5 +183,6 @@
+ (double)underlineCursorOffset;
+ (BOOL)logRestorableStateSize;
+ (NSString *)autoLogFormat;
+ (BOOL)killSessionsOnLogout;
 
@end
Loading
Loading
@@ -273,5 +273,6 @@ DEFINE_BOOL(trackingRunloopForLiveResize, YES, @"Experimental Features: Use a tr
DEFINE_BOOL(enableAPIServer, NO, @"Experimental Features: Enable websocket API server.\nYou must restart iTerm2 for this change to take effect.");
DEFINE_BOOL(useGCDUpdateTimer, YES, @"Experimental Features: Use GCD-based update timer instead of NSTimer.\nThis should cause more regular screen updates. Restart iTerm2 after changing this setting.");
DEFINE_BOOL(drawOutlineAroundCursor, NO, @"Experimental Features: Draw outline around underline and vertical bar cursors using background color.");
DEFINE_BOOL(killSessionsOnLogout, NO, @"Experimental Features: Kill sessions on logout.\nA possible fix for issue 4147.");
 
@end
Loading
Loading
@@ -1448,6 +1448,9 @@ static iTermController *gSharedInstance;
 
- (void)workspaceWillPowerOff:(NSNotification *)notification {
_willPowerOff = YES;
if ([iTermAdvancedSettingsModel killSessionsOnLogout] && [iTermAdvancedSettingsModel runJobsInServers]) {
[self killRestorableSessions];
}
}
 
- (NSInteger)numberOfDecodesPending {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment