From 391bbbf8c35de24ba6d125c7b39bf13363028939 Mon Sep 17 00:00:00 2001 From: jj Date: Sun, 15 Feb 2026 12:13:58 +0000 Subject: [PATCH 1/2] manually refresh some patches --- .../linux/add-middle-click-paste-flag.patch | 31 ++++++++++--------- ...se-oauth2-client-switches-as-default.patch | 15 ++++----- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/patches/helium/linux/add-middle-click-paste-flag.patch b/patches/helium/linux/add-middle-click-paste-flag.patch index 79e3827..80cf08a 100644 --- a/patches/helium/linux/add-middle-click-paste-flag.patch +++ b/patches/helium/linux/add-middle-click-paste-flag.patch @@ -1,20 +1,21 @@ --- a/chrome/browser/helium_flag_choices.h +++ b/chrome/browser/helium_flag_choices.h -@@ -36,6 +36,8 @@ namespace helium { - constexpr const char kHeliumCatUiCommandLine[] = "helium-cat-ui"; - constexpr const char kHeliumCatFixedAddressBarCommandLine[] = - "helium-cat-fixed-address-bar"; +@@ -35,7 +35,8 @@ namespace helium { + constexpr const char kMiddleClickAutoscrollCommandLine[] = "middle-click-autoscroll"; + constexpr const char kHeliumCompactLocationWidthCommandLine[] = + "helium-compact-location-width"; +- + constexpr const char kMiddleClickPasteEnabledCommandLine[] = + "helium-middle-click-paste-enabled"; - } // namespace helium + #endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */ --- a/chrome/browser/helium_flag_entries.h +++ b/chrome/browser/helium_flag_entries.h -@@ -40,4 +40,8 @@ - "[CAT] Fixed address bar width", - "Prevents the address bar from shrinking in the CAT layout. Will push toolbar actions outside of bounds on small window sizes, beware. Works only when the main CAT flag is enabled. Early and buggy, stuff will break and/or look weird. Helium flag.", - kOsDesktop, FEATURE_VALUE_TYPE(features::kHeliumCatFixedAddressBar)}, +@@ -36,4 +36,8 @@ + "Automatic address bar width in compact layout", + "Allows the location bar to automatically reduce its width in the compact browser layout. The omnibox may be uncomfortable to use. Helium flag.", + kOsDesktop, FEATURE_VALUE_TYPE(features::kHeliumCompactLocationWidth)}, + {helium::kMiddleClickPasteEnabledCommandLine, + "Middle Click Paste", + "Controls middle click paste functionality. Helium flag.", @@ -30,7 +31,7 @@ #include "base/logging.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" -@@ -142,6 +143,12 @@ void UpdateFromSystemSettings(blink::Ren +@@ -143,6 +144,12 @@ void UpdateFromSystemSettings(blink::Ren #endif // BUILDFLAG(USE_AURA) #if BUILDFLAG(IS_LINUX) @@ -70,18 +71,18 @@ } --- a/ui/base/ui_base_features.cc +++ b/ui/base/ui_base_features.cc -@@ -449,4 +449,6 @@ BASE_FEATURE(kUseSystemDefaultAccentColo - - BASE_FEATURE(kStringWidthCache, base::FEATURE_DISABLED_BY_DEFAULT); +@@ -446,4 +446,6 @@ BASE_FEATURE(kStringWidthCache, base::FE + BASE_FEATURE(kUseClipboardStrictVirtualFileCheck, + base::FEATURE_ENABLED_BY_DEFAULT); +BASE_FEATURE(kMiddleClickPasteEnabled, base::FEATURE_ENABLED_BY_DEFAULT); + } // namespace features --- a/ui/base/ui_base_features.h +++ b/ui/base/ui_base_features.h -@@ -270,6 +270,9 @@ BASE_DECLARE_FEATURE(kUseSystemDefaultAc +@@ -274,6 +274,9 @@ BASE_DECLARE_FEATURE(kStringWidthCache); COMPONENT_EXPORT(UI_BASE_FEATURES) - BASE_DECLARE_FEATURE(kStringWidthCache); + BASE_DECLARE_FEATURE(kUseClipboardStrictVirtualFileCheck); +COMPONENT_EXPORT(UI_BASE_FEATURES) +BASE_DECLARE_FEATURE(kMiddleClickPasteEnabled); diff --git a/patches/ungoogled-chromium/portablelinux/use-oauth2-client-switches-as-default.patch b/patches/ungoogled-chromium/portablelinux/use-oauth2-client-switches-as-default.patch index 1695e80..ba81c32 100644 --- a/patches/ungoogled-chromium/portablelinux/use-oauth2-client-switches-as-default.patch +++ b/patches/ungoogled-chromium/portablelinux/use-oauth2-client-switches-as-default.patch @@ -1,18 +1,19 @@ --- a/google_apis/api_key_cache.cc +++ b/google_apis/api_key_cache.cc -@@ -208,13 +208,13 @@ ApiKeyCache::ApiKeyCache(const DefaultAp +@@ -235,14 +235,14 @@ ApiKeyCache::ApiKeyCache(const DefaultAp std::string default_client_id = CalculateKeyValue( default_api_keys.google_default_client_id, -- STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), nullptr, std::string(), -+ STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), ::switches::kOAuth2ClientID, std::string(), - environment.get(), command_line, gaia_config, +- STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), nullptr, ++ STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_ID), std::string(), ::switches::kOAuth2ClientID, + std::string(), environment.get(), command_line, gaia_config, default_api_keys.allow_override_via_environment, default_api_keys.allow_unset_values); std::string default_client_secret = CalculateKeyValue( default_api_keys.google_default_client_secret, -- STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_SECRET), nullptr, -+ STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_SECRET), ::switches::kOAuth2ClientSecret, - std::string(), environment.get(), command_line, gaia_config, + STRINGIZE_NO_EXPANSION(GOOGLE_DEFAULT_CLIENT_SECRET), std::string(), +- nullptr, std::string(), environment.get(), command_line, gaia_config, ++ ::switches::kOAuth2ClientSecret, std::string(), environment.get(), command_line, gaia_config, default_api_keys.allow_override_via_environment, default_api_keys.allow_unset_values); + From c3ccac91e7f94b1af27fa6924a9fecdce90a8741 Mon Sep 17 00:00:00 2001 From: helium-bot Date: Sun, 15 Feb 2026 12:28:09 +0000 Subject: [PATCH 2/2] update: helium 0.9.1.1 --- helium-chromium | 2 +- package/helium-bin.spec | 2 +- .../linux/add-error-for-missing-desktop-file.patch | 12 ++++++------ patches/helium/linux/change-chromium-branding.patch | 2 +- patches/helium/linux/fix-swipe-between-pages.patch | 2 +- patches/helium/linux/rename-chrome-binary.patch | 2 +- patches/helium/linux/use-default-theme.patch | 2 +- .../portablelinux/fix-compiling-on-arm64.patch | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/helium-chromium b/helium-chromium index aacb18d..0243402 160000 --- a/helium-chromium +++ b/helium-chromium @@ -1 +1 @@ -Subproject commit aacb18d4fdde0d28713ccdc579c2634dc59990e1 +Subproject commit 024340269c43fe9c6f1fe567e3b2dfea84781c7c diff --git a/package/helium-bin.spec b/package/helium-bin.spec index e63abd1..bdfd45c 100644 --- a/package/helium-bin.spec +++ b/package/helium-bin.spec @@ -1,4 +1,4 @@ -%define version 0.8.5.1 +%define version 0.9.1.1 %global debug_package %{nil} Name: helium-bin diff --git a/patches/helium/linux/add-error-for-missing-desktop-file.patch b/patches/helium/linux/add-error-for-missing-desktop-file.patch index 57e11fa..a3f9ebe 100644 --- a/patches/helium/linux/add-error-for-missing-desktop-file.patch +++ b/patches/helium/linux/add-error-for-missing-desktop-file.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/shell_integration.h +++ b/chrome/browser/shell_integration.h -@@ -100,6 +100,11 @@ enum DefaultWebClientState { +@@ -106,6 +106,11 @@ enum DefaultWebClientState { // The current install mode is not default, although one of the brand's // other install modes is. OTHER_MODE_IS_DEFAULT, @@ -84,7 +84,7 @@ profile, --- a/chrome/browser/ui/webui/settings/settings_default_browser_handler.cc +++ b/chrome/browser/ui/webui/settings/settings_default_browser_handler.cc -@@ -163,7 +163,11 @@ void DefaultBrowserHandler::OnDefaultChe +@@ -200,7 +200,11 @@ void DefaultBrowserHandler::OnDefaultChe base::Value::Dict dict; dict.Set("isDefault", state == shell_integration::IS_DEFAULT); dict.Set("canPin", can_pin); @@ -119,7 +119,7 @@ --- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc +++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc -@@ -133,6 +133,7 @@ +@@ -135,6 +135,7 @@ #endif #if BUILDFLAG(IS_LINUX) @@ -127,7 +127,7 @@ #include "ui/display/screen.h" #endif -@@ -710,6 +711,15 @@ void AddClearBrowsingDataStrings(content +@@ -716,6 +717,15 @@ void AddClearBrowsingDataStrings(content html_source->AddLocalizedStrings(kLocalizedStrings); } @@ -142,8 +142,8 @@ + #if !BUILDFLAG(IS_CHROMEOS) void AddDefaultBrowserStrings(content::WebUIDataSource* html_source) { - html_source->AddString( -@@ -733,9 +743,15 @@ void AddDefaultBrowserStrings(content::W + static constexpr webui::LocalizedString kLocalizedStrings[] = { +@@ -732,9 +742,15 @@ void AddDefaultBrowserStrings(content::W {"defaultBrowserMakeDefaultButton", IDS_SETTINGS_DEFAULT_BROWSER_MAKE_DEFAULT_BUTTON}, {"defaultBrowserError", IDS_SETTINGS_DEFAULT_BROWSER_ERROR}, diff --git a/patches/helium/linux/change-chromium-branding.patch b/patches/helium/linux/change-chromium-branding.patch index 313d998..1f4a26c 100644 --- a/patches/helium/linux/change-chromium-branding.patch +++ b/patches/helium/linux/change-chromium-branding.patch @@ -1,6 +1,6 @@ --- a/chrome/BUILD.gn +++ b/chrome/BUILD.gn -@@ -1810,7 +1810,7 @@ if (is_linux || is_chromeos) { +@@ -1812,7 +1812,7 @@ if (is_linux || is_chromeos) { ] if (is_linux) { sources += [ diff --git a/patches/helium/linux/fix-swipe-between-pages.patch b/patches/helium/linux/fix-swipe-between-pages.patch index fe534f8..a5a8cec 100644 --- a/patches/helium/linux/fix-swipe-between-pages.patch +++ b/patches/helium/linux/fix-swipe-between-pages.patch @@ -1,6 +1,6 @@ --- a/content/common/features.cc +++ b/content/common/features.cc -@@ -691,7 +691,7 @@ const base::FeatureParam env = base::Environment::Create(); switch (base::nix::GetDesktopEnvironment(env.get())) { diff --git a/patches/ungoogled-chromium/portablelinux/fix-compiling-on-arm64.patch b/patches/ungoogled-chromium/portablelinux/fix-compiling-on-arm64.patch index eb64d3b..6d5fbec 100644 --- a/patches/ungoogled-chromium/portablelinux/fix-compiling-on-arm64.patch +++ b/patches/ungoogled-chromium/portablelinux/fix-compiling-on-arm64.patch @@ -108,7 +108,7 @@ '--no-tools', '--no-runtimes', # PIC needed for Rust build (links LLVM into shared object) -@@ -783,7 +786,8 @@ def main(): +@@ -789,7 +792,8 @@ def main(): # Fetch sysroot we build rustc against. This ensures a minimum supported # host (not Chromium target). Since the rustc linux package is for # x86_64 only, that is the sole needed sysroot.