Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: remoting/host/linux/linux_me2me_host.py

Issue 341653004: Increase size limit of Me2Me Linux virtual desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/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 24 matching lines...) Expand all
35 35
36 # This script has a sensible default for the initial and maximum desktop size, 36 # This script has a sensible default for the initial and maximum desktop size,
37 # which can be overridden either on the command-line, or via a comma-separated 37 # which can be overridden either on the command-line, or via a comma-separated
38 # list of sizes in this environment variable. 38 # list of sizes in this environment variable.
39 DEFAULT_SIZES_ENV_VAR = "CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES" 39 DEFAULT_SIZES_ENV_VAR = "CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES"
40 40
41 # By default, provide a maximum size that is large enough to support clients 41 # By default, provide a maximum size that is large enough to support clients
42 # with large or multiple monitors. This is a comma-separated list of 42 # with large or multiple monitors. This is a comma-separated list of
43 # resolutions that will be made available if the X server supports RANDR. These 43 # resolutions that will be made available if the X server supports RANDR. These
44 # defaults can be overridden in ~/.profile. 44 # defaults can be overridden in ~/.profile.
45 DEFAULT_SIZES = "1600x1200,3840x1600" 45 DEFAULT_SIZES = "1600x1200,3840x2560"
46 46
47 # If RANDR is not available, use a smaller default size. Only a single 47 # If RANDR is not available, use a smaller default size. Only a single
48 # resolution is supported in this case. 48 # resolution is supported in this case.
49 DEFAULT_SIZE_NO_RANDR = "1600x1200" 49 DEFAULT_SIZE_NO_RANDR = "1600x1200"
50 50
51 SCRIPT_PATH = sys.path[0] 51 SCRIPT_PATH = sys.path[0]
52 52
53 IS_INSTALLED = (os.path.basename(sys.argv[0]) != 'linux_me2me_host.py') 53 IS_INSTALLED = (os.path.basename(sys.argv[0]) != 'linux_me2me_host.py')
54 54
55 if IS_INSTALLED: 55 if IS_INSTALLED:
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 else: 1234 else:
1235 logging.info("Host exited with status %s." % os.WEXITSTATUS(status)) 1235 logging.info("Host exited with status %s." % os.WEXITSTATUS(status))
1236 elif os.WIFSIGNALED(status): 1236 elif os.WIFSIGNALED(status):
1237 logging.info("Host terminated by signal %s." % os.WTERMSIG(status)) 1237 logging.info("Host terminated by signal %s." % os.WTERMSIG(status))
1238 1238
1239 1239
1240 if __name__ == "__main__": 1240 if __name__ == "__main__":
1241 logging.basicConfig(level=logging.DEBUG, 1241 logging.basicConfig(level=logging.DEBUG,
1242 format="%(asctime)s:%(levelname)s:%(message)s") 1242 format="%(asctime)s:%(levelname)s:%(message)s")
1243 sys.exit(main()) 1243 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698