Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/5967

Vanessa3dcea128b323
diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts
index 9f8d731253..cc1721f3cb 100644
--- a/app/src/config/bazaar.ts
+++ b/app/src/config/bazaar.ts
@@ -337,7 +337,12 @@ export const bazaar = {
const type = target.getAttribute("data-type");
if (type === "open") {
/// #if !BROWSER
- shell.openPath(path.join(window.siyuan.config.system.confDir, "appearance", "themes", target.parentElement.getAttribute("data-name")));
+ const dirName = target.parentElement.parentElement.getAttribute("data-bazaar")
+ if (dirName === "icons" || dirName === "themes") {
+ shell.openPath(path.join(window.siyuan.config.system.confDir, "appearance", dirName, target.parentElement.getAttribute("data-name")))
+ } else {
+ shell.openPath(path.join(window.siyuan.config.system.dataDir, dirName, target.parentElement.getAttribute("data-name")));
+ }
/// #endif
event.preventDefault();
event.stopPropagation();