Files
ports/devel/electron41/files/patch-electron_shell_common_electron__paths.cc
2026-10-04 04:07:15 +00:00

21 lines
643 B
C++

--- electron/shell/common/electron_paths.cc.orig 2026-02-05 13:04:28 UTC
+++ electron/shell/common/electron_paths.cc
@@ -12,7 +12,7 @@
#include "shell/common/platform_util.h"
#include "shell/common/thread_restrictions.h"
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "base/nix/xdg_util.h"
#endif
@@ -62,7 +62,7 @@ bool ElectronPathProvider(int key, base::FilePath* res
create_dir = true;
break;
}
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
case DIR_APP_DATA: {
auto env = base::Environment::Create();
cur = base::nix::GetXDGDirectory(