From 18848aa138845601dd33ae2b78f021e5b7433ab7 Mon Sep 17 00:00:00 2001 From: brave-builds <45370463+brave-builds@users.noreply.github.com> Date: Mon, 20 Nov 2023 23:08:29 -0500 Subject: [PATCH] Added the ability to override the .desktop file location in official Linux builds (uplift to 1.61.x) (#21044) Uplift of #20892 (squashed) to beta --- chromium_src/chrome/common/channel_info_posix.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chromium_src/chrome/common/channel_info_posix.cc b/chromium_src/chrome/common/channel_info_posix.cc index b19eabc8a9a0..9273b928deed 100644 --- a/chromium_src/chrome/common/channel_info_posix.cc +++ b/chromium_src/chrome/common/channel_info_posix.cc @@ -54,6 +54,10 @@ std::string GetChannelSuffixForExtraFlagsEnvVarName() { #if BUILDFLAG(IS_LINUX) std::string GetDesktopName(base::Environment* env) { + std::string brave_snap; + if (env->GetVar("BRAVE_SNAP", &brave_snap) && brave_snap == "1") { + return "brave.desktop"; + } #if defined(OFFICIAL_BUILD) version_info::Channel product_channel(chrome::GetChannel()); switch (product_channel) {