Skip to content

Commit

Permalink
www/iridium: add explicit dependency on graphics/wayland
Browse files Browse the repository at this point in the history
This way Iridium supports Wayland out of the box.

While here:
-fixup policy paths
- avoid lurking processes after exit
  • Loading branch information
rnagy authored and rene0 committed Apr 4, 2022
1 parent 812de04 commit 29a45d3
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
2 changes: 2 additions & 0 deletions www/iridium/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= iridium
PORTVERSION= 2022.04.100.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://downloads.iridiumbrowser.de/source/
PKGNAMESUFFIX= -browser
Expand Down Expand Up @@ -54,6 +55,7 @@ LIB_DEPENDS= libatk-bridge-2.0.so:accessibility/at-spi2-atk \
libnss3.so:security/nss \
libexpat.so:textproc/expat2 \
libfontconfig.so:x11-fonts/fontconfig \
libwayland-client.so:graphics/wayland \
libxkbcommon.so:x11/libxkbcommon \
libxshmfence.so:x11/libxshmfence

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
--- chrome/browser/background/background_mode_manager.cc.orig 2022-04-01 07:48:30 UTC
--- chrome/browser/background/background_mode_manager.cc.orig 2022-04-03 12:23:22 UTC
+++ chrome/browser/background/background_mode_manager.cc
@@ -376,7 +376,7 @@ void BackgroundModeManager::RegisterPrefs(PrefRegistry
registry->RegisterBooleanPref(prefs::kChromeCreatedLoginItem, false);
registry->RegisterBooleanPref(prefs::kMigratedLoginItemPref, false);
#endif
- registry->RegisterBooleanPref(prefs::kBackgroundModeEnabled, false);
+ registry->RegisterBooleanPref(prefs::kBackgroundModeEnabled, true);
}

void BackgroundModeManager::RegisterProfile(Profile* profile) {
@@ -899,7 +899,7 @@ gfx::ImageSkia GetStatusTrayIcon() {
return gfx::ImageSkia();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--- chrome/browser/first_run/first_run_internal_linux.cc.orig 2022-04-03 12:23:22 UTC
+++ chrome/browser/first_run/first_run_internal_linux.cc
@@ -21,7 +21,13 @@ bool IsOrganicFirstRun() {
base::FilePath InitialPrefsPath() {
// The standard location of the initial prefs is next to the chrome binary.
base::FilePath initial_prefs;
+#if BUILDFLAG(IS_OPENBSD)
+ initial_prefs = base::FilePath("/etc/iridium");
+#elif BUILDFLAG(IS_FREEBSD)
+ initial_prefs = base::FilePath("/usr/local/etc/iridium");
+#else
initial_prefs = base::FilePath("/etc/iridium-browser");
+#endif
base::FilePath new_path = initial_prefs.AppendASCII(installer::kInitialPrefs);
if (base::PathIsReadable(new_path))
return new_path;
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- headless/lib/browser/policy/headless_browser_policy_connector.cc.orig 2022-04-03 12:23:22 UTC
+++ headless/lib/browser/policy/headless_browser_policy_connector.cc
@@ -148,8 +148,10 @@ HeadlessBrowserPolicyConnector::CreatePlatformProvider
// chrome/common/chrome_paths.cc
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
base::FilePath config_dir_path(FILE_PATH_LITERAL("/etc/opt/chrome/policies"));
+#elif BUILDFLAG(IS_FREEBSD)
+ base::FilePath config_dir_path(FILE_PATH_LITERAL("/usr/local/etc/iridium/policies"));
#else
- base::FilePath config_dir_path(FILE_PATH_LITERAL("/etc/iridium-browser/policies"));
+ base::FilePath config_dir_path(FILE_PATH_LITERAL("/etc/iridium/policies"));
#endif
std::unique_ptr<AsyncPolicyLoader> loader(new ConfigDirPolicyLoader(
base::ThreadPool::CreateSequencedTaskRunner(

0 comments on commit 29a45d3

Please sign in to comment.