From b4df2f20939d40918d7a869e942f73ba9f8bb4ac Mon Sep 17 00:00:00 2001 From: Nick Hurley Date: Wed, 8 May 2013 18:06:17 -0700 Subject: [PATCH] bug 870168 - make mach handle multiple logged-in users properly r=gps DONTBUILD (NPOTB) --- python/mozbuild/mozbuild/mach_commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index 3e3bb3064cb8..89156ff47a1b 100644 --- a/python/mozbuild/mozbuild/mach_commands.py +++ b/python/mozbuild/mozbuild/mach_commands.py @@ -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'):