bug 870168 - make mach handle multiple logged-in users properly r=gps DONTBUILD (NPOTB)

This commit is contained in:
Nick Hurley 2013-05-08 18:06:17 -07:00
Родитель 298c09657e
Коммит b4df2f2093
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -4,6 +4,7 @@
from __future__ import print_function, unicode_literals
import getpass
import logging
import operator
import os
@ -189,6 +190,9 @@ class Build(MachCommandBase):
if proc.name != 'Finder':
continue
if proc.username != getpass.getuser():
continue
# Try to isolate system finder as opposed to other "Finder"
# processes.
if not proc.exe.endswith('CoreServices/Finder.app/Contents/MacOS/Finder'):