shuiguomayi
V2EX  ›  问与答

KDE wayland 环境下 Electron 的 appimage 程序没有边框和阴影

  •  
  •   shuiguomayi · May 21, 2025 · 773 views
    This topic created in 358 days ago, the information mentioned may be changed or developed.
    基于 Electron 的 appimage 程序,例如 cursor ,cherrystudio ,等等,
    通过检索
    - AI:Gemini ,deepseek
    - Google
    获得有价值的参考资料
    - [ArchLinux + KDE 一周使用小结 | 蚊帐]( https://mozz.ie/posts/experience-summary-for-arch-and-kde/)
    - [Electron CSD shadows/border? : r/kde]( https://www.reddit.com/r/kde/comments/m09b5u/electron_csd_shadowsborder/)
    - [How to bring back global menu for Electron apps on Wayland? : r/kde]( https://www.reddit.com/r/kde/comments/1f6gz1y/how_to_bring_back_global_menu_for_electron_apps/)

    解决方法是
    1. 给 appimage 的启动参数里添加 `obsidian --enable-feature=UseOzonePlatform --ozone-platform=wayland`让它强制使用 wayland
    2. 给该 app 的 Special Window Setting 中指定 “无标题栏和边框”为否。

    但经过测试,在 ubuntu KDE plasma 6.3.5 下,没有效果。有大佬在类似的环境下对 Electron 程序设定边框和阴影成功的吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2701 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 15:57 · PVG 23:57 · LAX 08:57 · JFK 11:57
    ♥ Do have faith in what you're doing.