Set program name from the remoting name
authorMike Hommey <mh@glandium.org>
Sat, 4 Feb 2017 23:41:22 +0000 (08:41 +0900)
committerCarsten Schoenert <c.schoenert@t-online.de>
Thu, 1 Sep 2022 05:52:16 +0000 (06:52 +0100)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Set-program-name-from-the-remoting-name.patch

toolkit/xre/nsAppRunner.cpp

index 8b6b91d826dd300fa7061ce724384e91d999747b..dd0c8410d5d737f87990aa39fe1c4a02583f1e0b 100644 (file)
@@ -4746,8 +4746,11 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) {
   // consistently.
 
   // Set program name to the one defined in application.ini.
-  g_set_prgname(gAppData->remotingName);
-
+  {
+    nsAutoCString program(gAppData->remotingName);
+    ToLowerCase(program);
+    g_set_prgname(program.get());
+  }
   // Initialize GTK here for splash.
 
 #  if defined(MOZ_WIDGET_GTK) && defined(MOZ_X11)