Skip to content

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

:sparkles: Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674

Danielf5f510ec2e44
diff --git a/kernel/cli/cmd/root.go b/kernel/cli/cmd/root.go
index edc1d5379d..bc901644b0 100644
--- a/kernel/cli/cmd/root.go
+++ b/kernel/cli/cmd/root.go
@@ -97,6 +97,9 @@ var rootCmd = &cobra.Command{
func findAppDir() string {
if exePath, err := os.Executable(); err == nil {
+ if resolved, err2 := filepath.EvalSymlinks(exePath); err2 == nil {
+ exePath = resolved
+ }
exeDir := filepath.Dir(exePath)
candidates := []string{
filepath.Join(exeDir, ".."), // resources/kernel/ → resources/ (production)