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, 6 Oct 2022 18:34:42 +0000 (19:34 +0100)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Set-program-name-from-the-remoting-name.patch

toolkit/xre/nsAppRunner.cpp

index 79baf84160830c79501925c195ead6abb76eb55d..1f6bc18604cbcb1fd434f6a764a3bc15ae0036ca 100644 (file)
@@ -4745,8 +4745,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)