Skip to content

Commit

Permalink
Brave .desktop files for Gnome icon issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyBarabash committed Feb 26, 2018
1 parent 0b1f5b8 commit 82c836d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patches/chrome-browser-shell_integration_linux.cc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index 5814e5f0b1b0d3b8abcf70e96f9949fecd37b12a..ad6b393679b86150c4fb7a1f69cdf2025e3e6bf8 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -652,7 +652,7 @@ std::string GetDesktopName(base::Environment* env) {
std::string name;
if (env->GetVar("CHROME_DESKTOP", &name) && !name.empty())
return name;
- return "chromium-browser.desktop";
+ return "brave-browser.desktop";
#endif
}

@@ -660,7 +660,7 @@ std::string GetIconName() {
#if defined(GOOGLE_CHROME_BUILD)
return "google-chrome";
#else // CHROMIUM_BUILD
- return "chromium-browser";
+ return "brave-browser";
#endif
}

13 changes: 13 additions & 0 deletions patches/chrome-browser-ui-libgtkui-gtk_util.cc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/chrome/browser/ui/libgtkui/gtk_util.cc b/chrome/browser/ui/libgtkui/gtk_util.cc
index 09191e00d91cd79e42c4f63519b6fba6712f69c3..a1d135df182ba2d56c20e3983ad6c4f84d51d820 100644
--- a/chrome/browser/ui/libgtkui/gtk_util.cc
+++ b/chrome/browser/ui/libgtkui/gtk_util.cc
@@ -126,7 +126,7 @@ std::string GetDesktopName(base::Environment* env) {
std::string name;
if (env->GetVar("CHROME_DESKTOP", &name) && !name.empty())
return name;
- return "chromium-browser.desktop";
+ return "brave-browser.desktop";
#endif
}

0 comments on commit 82c836d

Please sign in to comment.