21 lines
643 B
C++
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(
|