From: Mike Hommey Date: Sun, 2 Sep 2018 22:37:40 +0000 (+0900) Subject: Use remoting name for call to gdk_set_program_class X-Git-Tag: archive/raspbian/60.6.1esr-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=64e4e55b5220626a5ccfdebc0ad71dcfc10706a7;p=firefox-esr.git Use remoting name for call to gdk_set_program_class Closes: #907574 Gbp-Pq: Topic debian-hacks Gbp-Pq: Name Use-remoting-name-for-call-to-gdk_set_program_class.patch --- diff --git a/widget/gtk/nsAppShell.cpp b/widget/gtk/nsAppShell.cpp index e696af9e0a8..0b4dd693ee8 100644 --- a/widget/gtk/nsAppShell.cpp +++ b/widget/gtk/nsAppShell.cpp @@ -23,6 +23,7 @@ #include "WakeLockListener.h" #endif #include "gfxPlatform.h" +#include "nsAppRunner.h" #include "ScreenHelperGTK.h" #include "HeadlessScreenHelper.h" #include "mozilla/widget/ScreenManager.h" @@ -163,10 +164,8 @@ nsresult nsAppShell::Init() { // option when program uses gdk_set_program_class(). // // See https://bugzilla.gnome.org/show_bug.cgi?id=747634 - nsAutoString brandName; - mozilla::widget::WidgetUtils::GetBrandShortName(brandName); - if (!brandName.IsEmpty()) { - gdk_set_program_class(NS_ConvertUTF16toUTF8(brandName).get()); + if (gAppData) { + gdk_set_program_class(gAppData->remotingName); } }