Files
extra/icedove-uxp/0003-Hardcode-AppName-in-nsAppRunner.patch
2025-06-22 20:39:04 -05:00

58 lines
2.1 KiB
Diff

From 9c9f5c4264a10773c5fbc83c7a7c64e9c1316e38 Mon Sep 17 00:00:00 2001
From: Gaming4JC <g4jc@hyperbola.info>
Date: Sat, 20 Jul 2019 22:48:03 -0400
Subject: [PATCH 1/1] Hardcode AppName in nsAppRunner
Patches WM_ClassName and Application Name since we are keeping them unchanged for folder compatibility reasons.
Additional branding improvements of Help and Version String changes courtesy HarvettFox96.
---
toolkit/xre/nsAppRunner.cpp | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
index 5a51fd3e7..9fbc9c20d 100644
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -1335,11 +1335,11 @@ DumpHelp()
#endif
#ifdef XP_UNIX
printf(" --g-fatal-warnings Make all warnings fatal.\n"
- "\n%s options\n", gAppData->name);
+ "\nIcedove-UXP options\n", gAppData->name);
#endif
printf(" -h or --help Print this message.\n"
- " -v or --version Print %s version.\n"
+ " -v or --version Print Icedove-UXP version.\n"
" -P <profile> Start with <profile>.\n"
" --profile <path> Start with profile at <path>.\n"
#ifdef MC_BASILISK
@@ -1408,9 +1408,7 @@ static int MSCRTReportHook( int aReportType, char *aMessage, int *oReturnValue)
static inline void
DumpVersion()
{
- if (gAppData->vendor)
- printf("%s ", gAppData->vendor);
- printf("%s %s", gAppData->name, gAppData->version);
+ printf("Hyperbola Icedove-UXP %s", gAppData->version);
if (gAppData->copyright)
printf(", %s", gAppData->copyright);
printf("\n");
@@ -3205,11 +3203,9 @@ XREMain::XRE_mainStartup(bool* aExitFlag)
gdk_rgb_set_install(TRUE);
#endif
- // Set program name to the one defined in application.ini.
+ // Set WM_CLASS name
{
- nsAutoCString program(gAppData->name);
- ToLowerCase(program);
- g_set_prgname(program.get());
+ g_set_prgname("Icedove-UXP");
}
// Initialize GTK here for splash.
--
2.22.0