Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/opt/google/chrome-remote-desktop/chrome-remote-desktop 2014-07-10 01:40:27.000000000 -0400
- +++ b/opt/google/chrome-remote-desktop/chrome-remote-desktop 2014-07-10 01:38:04.836328458 -0400
- @@ -493,7 +493,7 @@
- # during iteration over the list.
- try:
- # Skip other users' processes.
- - if process.uids.real != uid:
- + if process.uids().real != uid:
- continue
- # Skip the process for this instance.
- @@ -501,12 +501,12 @@
- continue
- # |cmdline| will be [python-interpreter, script-file, other arguments...]
- - cmdline = process.cmdline
- + cmdline = process.cmdline()
- if len(cmdline) < 2:
- continue
- if cmdline[0] == sys.executable and cmdline[1] == sys.argv[0]:
- return process.pid
- - except psutil.error.Error:
- + except psutil.NoSuchProcess:
- continue
- return 0
- @@ -994,10 +994,10 @@
- logging.info("Group '%s' not found." % CHROME_REMOTING_GROUP_NAME)
- if os.getenv("DISPLAY"):
- - sudo_command = "gksudo --description \"Chrome Remote Desktop\""
- + sudo_command = "pkexec"
- else:
- sudo_command = "sudo"
- - command = ("sudo -k && exec %(sudo)s -- sh -c "
- + command = ("sudo -k && exec %(sudo)s sh -c "
- "\"groupadd -f %(group)s && gpasswd --add %(user)s %(group)s\"" %
- { 'group': CHROME_REMOTING_GROUP_NAME,
- 'user': user,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement