Closed
Description
Linux 桌面端导出路径选择问题
v3.1.29 无法导出:一直提示“正在导出,请稍等...”
Is there an existing issue for this?
- I have searched the existing issues
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default theme
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.
Describe the problem
更新到v3.1.29之后无法导出笔记为PDF or Docx,右上角一直提示“正在导出,请稍等...”,导出时选择的文件夹~/Documents
中没有生成文件。
根据日志发现导出时文件夹的选择功能有问题,
- 当选择的文件夹内不含文件和子文件夹时,无法选择该文件夹作为导出位置
- 当选择的文件夹内含有子文件夹,会进一步打开子文件夹
- 当选择的文件夹内含有文件时,会选择第一个文件作为导出位置,从而报错:
mkdir [/home/tom/Documents/README.md] failed: mkdir /home/tom/Documents/README.md: not a directory
未验证最新版是否修复此bug,看Changelog似乎没有。
Expected result
正确导出文件到选定的文件夹。
Screenshot or screen recording presentation
No response
Version environment
- Version: v3.1.29
- Operating System: Ubuntu 20.04 Linux, Gnome
- Browser (if used): -
Log file
More information
No response
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
88250 commentedon May 24, 2025
你好,我这里使用最新版在 Ubuntu 20.04.6 (Windows/WSL)上测试导出 docx 可以选择文件夹路径,下面有子文件或者文件夹时也可以正常导出:
issue.webm
我不太确定是不是原生系统上有问题,或者你先升级下思源看看。
这个问题暂时关闭了,如果有进一步信息欢迎随时跟帖,感谢反馈。
realysy commentedon May 26, 2025
v3.1.30 同样有这个问题
88250 commentedon May 26, 2025
有可能是 electron 的问题……?暂时保持打开一段时间看看其他 Linux 用户是否也遇到,谢谢。
[-]v3.1.29 无法导出:一直提示“正在导出,请稍等...”[/-][+]Linux 桌面端导出路径选择问题[/+]realysy commentedon May 27, 2025
随便挑了一个旧版 v3.1.22 没问题。
发现了新旧版导出时存在如下区别,供定位问题:
88250 commentedon May 27, 2025
方便的话麻烦再逐个版本升级尝试下,帮我们看看最近没有问题的版本是哪个,谢谢!
realysy commentedon May 27, 2025
v3.1.28 没问题,v3.1.29 开始有问题,中间的pre-release就测不了了,我安装的是.deb,pre-release没有deb包
88250 commentedon May 27, 2025
收到,我们排查下代码,多谢!
88250 commentedon May 28, 2025
在 v3.1.29 中我们升级了 Electron v35.3.0,可能是其中的这个改动造成的问题 electron/electron#46936
下个版本我们会升级 Electron v35.4.0,可能已经修复该问题 electron/electron#47025
#14926
[-]Linux 桌面端导出路径选择问题[/-][+]Export path selection problem on Linux desktop[/+]6 remaining items
realysy commentedon May 29, 2025
导出的时候还是无法选择文件夹,和之前现象一样:
当有子文件夹或包含文件的时候,可以选择子文件夹or文件,选择子文件夹的话会打开让进一步选择;选择文件的话就导出失败了

当文件夹为空时,无法选择当前路径导出

88250 commentedon May 29, 2025
我可能搞不定这个问题,暂时只能搁置了,看看社区其他开发者能否帮助解决。
不知道和这个有没有关联 https://www.electronjs.org/docs/latest/breaking-changes#behavior-changed-dialog-apis-defaultpath-option-on-linux
realysy commentedon May 29, 2025
可以降级electron到v3.1.28中使用的版本试试吗
88250 commentedon May 29, 2025
是个好主意,稍后我降级打个包
88250 commentedon May 29, 2025
试试这个 https://github.com/siyuan-note/siyuan/releases/download/v3.1.32-dev2/siyuan-v202505291310-linux-electron-34.5.0.deb
realysy commentedon May 29, 2025
这个版本没问题。
另外前面提到新旧版导出窗口不同,我看了两者导出窗口进程对应cmd的区别:
主要区别应该是
--enable-features
和--disable-features
不同,希望有助于定位问题。🎨 Export path selection problem on Linux desktop #14861
88250 commentedon May 29, 2025
调整了个 electron 的参数
app.commandLine.appendSwitch("xdg-portal-required-version", "4");
,麻烦再帮忙试试。https://github.com/siyuan-note/siyuan/releases/download/v3.1.32-dev2/siyuan-v202505291728-linux-electron-35.5.0.deb
realysy commentedon May 29, 2025
可以的,这个也没问题
88250 commentedon May 29, 2025
ok,多谢,那这个问题就算解决了 🎉