summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-04-24 11:35:35 -0400
committerMike Gilbert <floppym@gentoo.org>2019-04-24 11:36:03 -0400
commitb51d344e64ba2c17f81372844a6d5ddcc01c3173 (patch)
treec56888ac3ab45d414af28d02b115fd5e170adcb3 /www-client/google-chrome-beta
parentwww-client/google-chrome: apply workaround for GNOME (diff)
downloadgentoo-b51d344e64ba2c17f81372844a6d5ddcc01c3173.tar.gz
gentoo-b51d344e64ba2c17f81372844a6d5ddcc01c3173.tar.bz2
gentoo-b51d344e64ba2c17f81372844a6d5ddcc01c3173.zip
www-client/google-chrome-beta: apply workaround for GNOME
Closes: https://bugs.gentoo.org/684116 Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'www-client/google-chrome-beta')
-rw-r--r--www-client/google-chrome-beta/files/chrome-gnome.patch14
-rw-r--r--www-client/google-chrome-beta/google-chrome-beta-74.0.3729.108-r1.ebuild (renamed from www-client/google-chrome-beta/google-chrome-beta-74.0.3729.108.ebuild)2
2 files changed, 16 insertions, 0 deletions
diff --git a/www-client/google-chrome-beta/files/chrome-gnome.patch b/www-client/google-chrome-beta/files/chrome-gnome.patch
new file mode 100644
index 000000000000..9662ea3d82fd
--- /dev/null
+++ b/www-client/google-chrome-beta/files/chrome-gnome.patch
@@ -0,0 +1,14 @@
+--- a/opt/google/chrome-beta/google-chrome-beta
++++ b/opt/google/chrome-beta/google-chrome-beta
+@@ -39,6 +39,11 @@
+ # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
+ export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
+
++# Workaround to detect GNOME session variants until fix is backported to
++# older Chrome versions (fixed in 75.x):
++# https://chromium.googlesource.com/chromium/src/+/dd407d416fa941c04e33d81f2b1d8cab8196b633
++[[ ${XDG_CURRENT_DESKTOP} = *"GNOME"* ]] && export XDG_CURRENT_DESKTOP="GNOME"
++
+ # Sanitize std{in,out,err} because they'll be shared with untrusted child
+ # processes (http://crbug.com/376567).
+ exec < /dev/null
diff --git a/www-client/google-chrome-beta/google-chrome-beta-74.0.3729.108.ebuild b/www-client/google-chrome-beta/google-chrome-beta-74.0.3729.108-r1.ebuild
index e75218fcde20..b8601eeffdfb 100644
--- a/www-client/google-chrome-beta/google-chrome-beta-74.0.3729.108.ebuild
+++ b/www-client/google-chrome-beta/google-chrome-beta-74.0.3729.108-r1.ebuild
@@ -90,6 +90,8 @@ src_install() {
cd "${ED}" || die
unpacker
+ eapply "${FILESDIR}"/chrome-gnome.patch
+
rm -r etc usr/share/menu || die
mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die