2019-12-03 19:10:18 +00:00
|
|
|
From 83f234464554c7f4393cd1dbdeb3a68d3ae0ccae Mon Sep 17 00:00:00 2001
|
2019-07-20 15:56:53 +00:00
|
|
|
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
|
|
|
Date: Mon, 25 Mar 2019 20:30:11 +0100
|
|
|
|
Subject: [PATCH] Use remoting name for GDK application names
|
|
|
|
|
|
|
|
---
|
|
|
|
toolkit/xre/nsAppRunner.cpp | 6 +-----
|
|
|
|
widget/gtk/nsAppShell.cpp | 7 +++----
|
|
|
|
2 files changed, 4 insertions(+), 9 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
|
2019-12-03 19:10:18 +00:00
|
|
|
index 984b998133bd..b6c9f013940c 100644
|
2019-07-20 15:56:53 +00:00
|
|
|
--- a/toolkit/xre/nsAppRunner.cpp
|
|
|
|
+++ b/toolkit/xre/nsAppRunner.cpp
|
2019-12-03 19:10:18 +00:00
|
|
|
@@ -3746,11 +3746,7 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) {
|
2019-07-20 15:56:53 +00:00
|
|
|
// consistently.
|
|
|
|
|
|
|
|
// Set program name to the one defined in application.ini.
|
|
|
|
- {
|
|
|
|
- nsAutoCString program(gAppData->name);
|
|
|
|
- ToLowerCase(program);
|
|
|
|
- g_set_prgname(program.get());
|
|
|
|
- }
|
|
|
|
+ g_set_prgname(gAppData->remotingName);
|
|
|
|
|
|
|
|
// Initialize GTK here for splash.
|
|
|
|
|
|
|
|
diff --git a/widget/gtk/nsAppShell.cpp b/widget/gtk/nsAppShell.cpp
|
2019-12-03 19:10:18 +00:00
|
|
|
index 0daa78fdbbad..49038d0bb1c8 100644
|
2019-07-20 15:56:53 +00:00
|
|
|
--- a/widget/gtk/nsAppShell.cpp
|
|
|
|
+++ b/widget/gtk/nsAppShell.cpp
|
|
|
|
@@ -24,6 +24,7 @@
|
|
|
|
# include "WakeLockListener.h"
|
|
|
|
#endif
|
|
|
|
#include "gfxPlatform.h"
|
|
|
|
+#include "nsAppRunner.h"
|
|
|
|
#include "ScreenHelperGTK.h"
|
|
|
|
#include "HeadlessScreenHelper.h"
|
|
|
|
#include "mozilla/widget/ScreenManager.h"
|
2019-12-03 19:10:18 +00:00
|
|
|
@@ -175,10 +176,8 @@ nsresult nsAppShell::Init() {
|
2019-07-20 15:56:53 +00:00
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2019-12-03 19:10:18 +00:00
|
|
|
2.24.0
|
2019-07-20 15:56:53 +00:00
|
|
|
|