nuxeo/nuxeo-drive — pull request #5 by jiakuan (2013-11-22 05:28:00+00:00)
Title: Temporary fix for SUPNXP-9065: opening a file with ndrive that is not yet downloaded

For this ticket https://jira.nuxeo.com/browse/SUPNXP-9065, I implemented a temporary fix for both Mac and Windows, and I manually tested on Mac OS X 10.8 and Windows 7 VM. Please see the screenshots attached.

![screen shot 2013-11-22 at 12 45 23 pm](https://f.cloud.github.com/assets/533236/1598567/7a7b805c-5336-11e3-843b-19de9009fca7.png)
![screen shot 2013-11-22 at 12 58 55 pm](https://f.cloud.github.com/assets/533236/1598568/7a7ee922-5336-11e3-97eb-43a441f94993.png)

I created a new branch, named 'SUPNXP-9065', based on the 'release-5.7.3' tag. (I tried to work with the latest master branch, but got some issues and just didn't bother to investigate that issues, so just worked with 5.7.3 source code).

Please note that, on win32 platform, when a separate ndrivew.exe process is launched by a 'edit' command, which is triggered by a user clicking on a custom URL 'nxdrive://...', the QApplication object is not initialized at all, so no system tray is initialised for this process. Therefore, it's not able to show message in system tray area as it does on Mac OS. I then implemented a temporary solution to launch a minimum app to show the message, and then quit automatically after about 10 seconds. Please let me know if there are any better solutions!