/usr/bin/mate-terminal.wrapper is in mate-terminal 1.8.1+dfsg1-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #! /usr/bin/python
import sys
import os
import subprocess
newargs = ['mate-terminal']
oldargs = sys.argv[1:]
while True:
try:
arg = oldargs.pop(0)
if arg == '-display':
os.environ['DISPLAY'] = oldargs.pop(0)
elif arg == '-name':
newargs.append('--window-with-profile=' + oldargs.pop(0))
elif arg == '-n':
sys.stderr.write('Set an icon in your profile')
elif arg == '-T' or arg == '-title':
newargs.append('-t')
newargs.append(oldargs.pop(0))
elif arg == '-ls' or arg == '+ls':
sys.stderr.write('Login shell not supported. Set in your profile.')
elif arg == '-geometry':
newargs.append('--geometry=' + oldargs.pop(0))
elif arg == '-fn':
newargs.append('--font=' + oldargs.pop(0))
elif arg == '-fg':
newargs.append('--foreground=' + oldargs.pop(0))
elif arg == '-bg':
newargs.append('--background=' + oldargs.pop(0))
elif arg == '-tn':
newargs.append('--termname=' + oldargs.pop(0))
elif arg == '-h' or arg == '--help':
newargs.append('--help')
elif arg == '-e':
newargs.append('-x')
newargs += oldargs
break
except IndexError:
break
subprocess.call(newargs)
|