diff --git a/Manage Conky/ConkyInstallerSheetController.m b/Manage Conky/ConkyInstallerSheetController.m index 45a0281..caa6a79 100644 --- a/Manage Conky/ConkyInstallerSheetController.m +++ b/Manage Conky/ConkyInstallerSheetController.m @@ -145,8 +145,10 @@ - (void)beginInstalling /* * detect if XQuartz is installed */ - if (access(XQUARTZ_PATH, F_OK) == 0) + if (access(XQUARTZ_PATH, F_OK) != 0) { + [self writeToLog:@"XQuartz is missing, downloading...\n\n"]; + // // Must start the Helper // diff --git a/Manage Conky/Resources/InstallXQuartz.sh b/Manage Conky/Resources/InstallXQuartz.sh index 4e3776f..40ad4a2 100644 --- a/Manage Conky/Resources/InstallXQuartz.sh +++ b/Manage Conky/Resources/InstallXQuartz.sh @@ -14,13 +14,14 @@ curl -L -s -o /tmp/XQuartz.dmg https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg # mount dmg -hdiutil attach /tmp/XQuartz.dmg -mountpoint /Volumes/XQuartz +# (make it invisible to Finder) +hdiutil attach /tmp/XQuartz.dmg -mountpoint /Volumes/XQuartz -nobrowse # run the intstaller installer -pkg /Volumes/XQuartz/XQuartz.pkg -target / # umnount -hdiutil detach /Volumes/XQuartz +hdiutil detach /Volumes/XQuartz -force # cleanup rm -f /tmp/XQuartz.dmg