Changeset 4c3249ae933490bae2947df246d18404dcec59d6

Show
Ignore:
Timestamp:
02/24/09 17:02:24 (3 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
6e7a465a714dfa3038e4278695b5ac2b7c8748a1
Parents:
b79b94619f249cd3e89db6e5f93747e4dd1cf5ba
git-author:
Aleksandar Krsteski <alekrsteski@…> (02/19/09 00:16:34)
git-committer:
Lincoln de Sousa <lincoln@…> (02/24/09 17:02:24)
Message:

Fixing a bug when zsh is used as default shell.

Zsh exited immediately when empty list was passed as argv argument. This
occurred when using zsh without enabled login_shell option, causing an
infinite loop with tab creation and destroying. To fix this default the
argv to None.

Signed-off-by: Aleksandar Krsteski <alekrsteski@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/guake.py

    rb79b946 r4c3249a  
    870870        method of a vte terminal. 
    871871        """ 
    872         argv = [] 
     872        argv = None 
    873873        shell = self.client.get_string(KEY('/general/default_shell')) or 'sh' 
    874874        login_shell = self.client.get_bool(KEY('/general/use_login_shell')) 
    875875        if login_shell: 
    876             argv.append('-') 
     876            argv = ['-'] 
    877877 
    878878        directory = self.get_current_dir() 
    879         return shell, argv, None, directory, login_shell, None, None 
     879        return shell, argv, None, directory, login_shell, False, False 
    880880 
    881881    def add_tab(self, *args):