summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/chrome-remote-desktop/files/chrome-remote-desktop-41.0.2272.41-always-sudo.patch')
-rw-r--r--net-misc/chrome-remote-desktop/files/chrome-remote-desktop-41.0.2272.41-always-sudo.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-41.0.2272.41-always-sudo.patch b/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-41.0.2272.41-always-sudo.patch
new file mode 100644
index 000000000000..39e9d27e9d3a
--- /dev/null
+++ b/net-misc/chrome-remote-desktop/files/chrome-remote-desktop-41.0.2272.41-always-sudo.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/541708
+
+just use `sudo` for everything
+
+--- a/opt/google/chrome-remote-desktop/chrome-remote-desktop
++++ b/opt/google/chrome-remote-desktop/chrome-remote-desktop
+@@ -1092,10 +1092,7 @@
+ except KeyError:
+ logging.info("Group '%s' not found." % CHROME_REMOTING_GROUP_NAME)
+
+- if os.getenv("DISPLAY"):
+- sudo_command = "gksudo --description \"Chrome Remote Desktop\""
+- else:
+- sudo_command = "sudo"
++ sudo_command = "sudo"
+ command = ("sudo -k && exec %(sudo)s -- sh -c "
+ "\"groupadd -f %(group)s && gpasswd --add %(user)s %(group)s\"" %
+ { 'group': CHROME_REMOTING_GROUP_NAME,