OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # Virtual Me2Me implementation. This script runs and manages the processes | 6 # Virtual Me2Me implementation. This script runs and manages the processes |
7 # required for a Virtual Me2Me desktop, which are: X server, X desktop | 7 # required for a Virtual Me2Me desktop, which are: X server, X desktop |
8 # session, and Host process. | 8 # session, and Host process. |
9 # This script is intended to run continuously as a background daemon | 9 # This script is intended to run continuously as a background daemon |
10 # process, running under an ordinary (non-root) user account. | 10 # process, running under an ordinary (non-root) user account. |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 return 0 | 909 return 0 |
910 elif os.WEXITSTATUS(status) == 4: | 910 elif os.WEXITSTATUS(status) == 4: |
911 logging.info("OAuth credentials are invalid - exiting.") | 911 logging.info("OAuth credentials are invalid - exiting.") |
912 host_config.clear_auth() | 912 host_config.clear_auth() |
913 host_config.save() | 913 host_config.save() |
914 return 0 | 914 return 0 |
915 elif os.WEXITSTATUS(status) == 5: | 915 elif os.WEXITSTATUS(status) == 5: |
916 logging.info("Host domain is blocked by policy - exiting.") | 916 logging.info("Host domain is blocked by policy - exiting.") |
917 os.remove(host.config_file) | 917 os.remove(host.config_file) |
918 return 0 | 918 return 0 |
| 919 # Nothing to do for Mac-only status 6 (login screen unsupported) |
919 | 920 |
920 if __name__ == "__main__": | 921 if __name__ == "__main__": |
921 logging.basicConfig(level=logging.DEBUG) | 922 logging.basicConfig(level=logging.DEBUG) |
922 sys.exit(main()) | 923 sys.exit(main()) |
OLD | NEW |