Skip to content

Commit 473ec47

Browse files
committed
patches/helium: additional chromium -> helium renames
1 parent f245a89 commit 473ec47

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

patches/helium/linux/change-chromium-branding.patch

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@
3434
}
3535

3636
#if BUILDFLAG(IS_LINUX)
37+
@@ -148,11 +143,11 @@ std::string GetDesktopName(base::Environ
38+
// Allow $CHROME_DESKTOP to override the built-in value, so that development
39+
// versions can set themselves as the default without interfering with
40+
// non-official, packaged versions using the built-in value.
41+
- std::optional<std::string> name = env->GetVar("CHROME_DESKTOP");
42+
+ std::optional<std::string> name = env->GetVar("HELIUM_DESKTOP");
43+
if (name.has_value() && !name.value().empty()) {
44+
return name.value();
45+
}
46+
- return "chromium-browser.desktop";
47+
+ return "helium.desktop";
48+
#endif
49+
}
50+
#endif // BUILDFLAG(IS_LINUX)
3751
--- a/chrome/common/chrome_paths_linux.cc
3852
+++ b/chrome/common/chrome_paths_linux.cc
3953
@@ -81,7 +81,7 @@ bool GetDefaultUserDataDirectory(base::F
@@ -60,3 +74,61 @@
6074
*result = config_dir.Append(data_dir_basename + GetChannelSuffixForDataDir());
6175
return true;
6276
}
77+
--- a/chrome/installer/linux/common/chromium-browser.info
78+
+++ b/chrome/installer/linux/common/chromium-browser.info
79+
@@ -6,7 +6,7 @@
80+
# chromium-browser packages for various platforms.
81+
82+
# Base name of the package.
83+
-PACKAGE="chromium-browser"
84+
+PACKAGE="helium"
85+
86+
# Filename of the main executable (for generating launcher scripts, etc.)
87+
PROGNAME=chrome
88+
@@ -18,7 +18,7 @@ INSTALLDIR=/opt/chromium.org/chromium
89+
ENROLLMENTDIR=/etc/chromium/policies/enrollment
90+
91+
# Display string for desktop menu/icon.
92+
-MENUNAME="Chromium Web Browser"
93+
+MENUNAME="Helium"
94+
95+
# Brief package description.
96+
SHORTDESC="The web browser from the Chromium projects"
97+
@@ -27,16 +27,16 @@ SHORTDESC="The web browser from the Chro
98+
FULLDESC="Chromium is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier."
99+
100+
# Package maintainer information.
101+
-MAINTNAME="Chromium Linux Team"
102+
-MAINTMAIL="chromium-packagers@chromium.org"
103+
-PRODUCTURL="https://www.chromium.org/Home"
104+
+MAINTNAME="imput"
105+
+MAINTMAIL="helium@imput.net"
106+
+PRODUCTURL="https://helium.computer"
107+
108+
-PROJECT_LICENSE="BSD-3-Clause and LGPL-2.1+ and Apache-2.0 and IJG and MIT and GPL-2.0+ and ISC and OpenSSL and (MPL-1.1 or GPL-2.0 or LGPL-2.0)"
109+
+PROJECT_LICENSE="GPL-3.0 and BSD-3-Clause and LGPL-2.1+ and Apache-2.0 and IJG and MIT and GPL-2.0+ and ISC and OpenSSL and (MPL-1.1 or GPL-2.0 or LGPL-2.0)"
110+
111+
-DEVELOPER_NAME="The Chromium Authors"
112+
+DEVELOPER_NAME="The Helium Authors"
113+
114+
-BUGTRACKERURL="https://www.chromium.org/for-testers/bug-reporting-guidelines"
115+
+BUGTRACKERURL="https://github.com/imputnet/helium-linux/issues"
116+
117+
-HELPURL="https://chromium.googlesource.com/chromium/src/+/main/docs/linux/debugging.md"
118+
+HELPURL="https://helium.computer/"
119+
120+
-RDN="org.chromium.Chromium"
121+
+RDN="net.imput.helium"
122+
--- a/media/audio/pulse/pulse_util.cc
123+
+++ b/media/audio/pulse/pulse_util.cc
124+
@@ -44,8 +44,8 @@ namespace {
125+
constexpr char kBrowserDisplayName[] = "google-chrome";
126+
#define PRODUCT_STRING "Google Chrome"
127+
#else
128+
-constexpr char kBrowserDisplayName[] = "chromium-browser";
129+
-#define PRODUCT_STRING "Chromium"
130+
+constexpr char kBrowserDisplayName[] = "helium";
131+
+#define PRODUCT_STRING "Helium"
132+
#endif
133+
134+
#if defined(DLOPEN_PULSEAUDIO)

0 commit comments

Comments
 (0)