ProjectDjango/Project.py

changeset 85
7c79dead3a86
parent 82
fc196e739797
child 91
961fea40edb5
equal deleted inserted replaced
84:ab47346c7358 85:7c79dead3a86
54 54
55 @param cmd start the given program cmd (string) 55 @param cmd start the given program cmd (string)
56 @keyparam args list of parameters (list of strings) 56 @keyparam args list of parameters (list of strings)
57 @keyparam mode access mode (QIODevice.OpenMode) 57 @keyparam mode access mode (QIODevice.OpenMode)
58 """ 58 """
59 if cmd.endswith(('gnome-terminal', 'konsole')): 59 if cmd.endswith(('gnome-terminal', 'konsole', 'xfce4-terminal',
60 'mate-terminal')):
60 if '-e' in args: 61 if '-e' in args:
61 index = args.index('-e') + 1 62 index = args.index('-e') + 1
62 cargs = ' '.join(args[index:]) 63 cargs = ' '.join(args[index:])
63 args[index:] = [cargs] 64 args[index:] = [cargs]
64 65
73 @param cmd start the given program cmd (string) 74 @param cmd start the given program cmd (string)
74 @keyparam args list of parameters (list of strings) 75 @keyparam args list of parameters (list of strings)
75 @keyparam path new working directory (string) 76 @keyparam path new working directory (string)
76 @return tuple of successful start and process id (boolean, integer) 77 @return tuple of successful start and process id (boolean, integer)
77 """ 78 """
78 if cmd.endswith(('gnome-terminal', 'konsole')): 79 if cmd.endswith(('gnome-terminal', 'konsole', 'xfce4-terminal',
80 'mate-terminal')):
79 if '-e' in args: 81 if '-e' in args:
80 index = args.index('-e') + 1 82 index = args.index('-e') + 1
81 cargs = ' '.join(args[index:]) 83 cargs = ' '.join(args[index:])
82 args[index:] = [cargs] 84 args[index:] = [cargs]
83 85

eric ide

mercurial