Bug 1095151 - [mozinstall] Don't show finder window when installing a dmg on mac. r=whimboo
authorPhilipp Kewisch <mozilla@kewis.ch>
Thu, 06 Nov 2014 23:29:03 +0100
changeset 241217 3f5cfb8deed2e727691007be50dc1d28309f1693
parent 241216 68a47aac2628b822027134bc30de30429a24eb60
child 241218 1043bff752db7b22bb16a3cca74b2eb1ec2d8ca1
push idunknown
push userunknown
push dateunknown
reviewerswhimboo
bugs1095151
milestone36.0a1
Bug 1095151 - [mozinstall] Don't show finder window when installing a dmg on mac. r=whimboo
testing/mozbase/mozinstall/mozinstall/mozinstall.py
--- a/testing/mozbase/mozinstall/mozinstall/mozinstall.py
+++ b/testing/mozbase/mozinstall/mozinstall/mozinstall.py
@@ -232,17 +232,17 @@ def _install_dmg(src, dest):
     """Extract a dmg file into the destination folder and return the
     application folder.
 
     src -- DMG image which has to be extracted
     dest -- the path to extract to
 
     """
     try:
-        proc = subprocess.Popen('hdiutil attach %s' % src,
+        proc = subprocess.Popen('hdiutil attach -nobrowse -noautoopen %s' % src,
                                 shell=True,
                                 stdout=subprocess.PIPE)
 
         for data in proc.communicate()[0].split():
             if data.find('/Volumes/') != -1:
                 appDir = data
                 break