Skip to content

Commit

Permalink
Added the ability to override the .desktop file location in official …
Browse files Browse the repository at this point in the history
…Linux builds (uplift to 1.60.x) (#21045)

Uplift of #20892 (squashed) to release
  • Loading branch information
brave-builds authored Nov 21, 2023
1 parent 0ac5da0 commit 304b165
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chromium_src/chrome/common/channel_info_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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) {
Expand Down

0 comments on commit 304b165

Please sign in to comment.