SOLFIND
Web Lens
Portal home

桌面启动器快捷操作 | Electron

https://www.electronjs.org/zh/docs/latest/tutorial/linux-desktop-actions • 40 KB fetched
Open original page


桌面启动器快捷操作 | Electron 跳转到主内容 Electron 文档 应用开发接口(API) 博客 工具 * Electron Forge * Electron Fiddle 社区 * 治理 * 案例展示 * 资源 版本发布 中文 * English * Deutsch * Español * Français * 日本語 * Português * Русский * 中文 搜索 * 开始上手 * Electron 中的流程 * 最佳实践 * 示例 * Dark Mode * 设备访问 * 应用程序内购 * * 键盘快捷键 * 深度链接 (Deep Links) * 桌面启动器快捷操作 * * Menus * 多线程 * 原生文件拖 & 放 * 导航历史 * 通知(Notifications) * 离屏渲染 * 在线/离线事件探测 * 进度条 * 最近的文件 * * * 在 BrowserWindow 中展示文件 * * 拼写检查器 * Web 嵌入 * 任务栏自定义 * * 自定义窗口 * 开发 * Native Node Modules * 分发 * 检测和调试 * 引用 * 参与贡献 * * 示例 * 桌面启动器快捷操作 在本页面 桌面启动器快捷操作 概览 ​ On many Linux environments, you can add custom entries to the system launcher by modifying the .desktop file. 关于 Canonical 的 Unity 启动器文档, 参考 Adding Shortcuts to a Launcher 。 详细的参考信息请见 freedesktop.org Specification 。 注:上面的截图是 Audacious 音频播放器中启动器快捷方式的一个例子 若要创建快捷方式,你需要为添加到快捷菜单的条目提供 Name 和 Exec 属性。 Unity 将在用户点击快捷菜单项后执行 Exec 字段定义的命令。 .desktop 文件的示例如下: Actions=PlayPause;Next;Previous [Desktop Action PlayPause] Name=Play-Pause Exec=audacious -t [Desktop Action Next] Name=Next Exec=audacious -f [Desktop Action Previous] Name=Previous Exec=audacious -r Unity 推荐应用程序操作的首选方式是使用参数。 您可以在应用的全局变量 process.argv 中找到它们。 编辑此页面 上一个 深度链接 (Deep Links) 下一个 菜单 * 概览 文档 * 入门指南 * API 参考 清单 * 性能 * 安全 工具 * Electron Forge * Electron Fiddle 社区 * 治理 * 资源 * Discord * Bluesky * X * Mastodon * Stack Overflow 更多 * GitHub * Open Collective * 基础看板 版权所有 OpenJS Foundation 及 Electron 贡献者。保留所有权利。 OpenJS Foundation 已注册商标并使用商标。如需查看 OpenJS Foundation 的商标列表,请参阅我们的 商标政策 和 商标列表 。未在 OpenJS Foundation 商标列表 中标明的商标和标志,均为其各自持有者的商标™或注册商标®。使用它们并不意味着与它们有任何关联或得到它们的认可。 OpenJS Foundation | 使用条款 | 隐私政策 | 章程 | 行为准则 | 商标政策 | 商标列表 | Cookie 政策 Hosting and infrastructure graciously provided by

Links found on this page

  1. 跳转到主内容 [direct]
  2. Electron [direct]
  3. 文档 [direct]
  4. 应用开发接口(API) [direct]
  5. 博客 [direct]
  6. Electron Forge [direct]
  7. Electron Fiddle [direct]
  8. 治理 [direct]
  9. 案例展示 [direct]
  10. 资源 [direct]
  11. 版本发布 [direct]
  12. English [direct]
  13. Deutsch [direct]
  14. Español [direct]
  15. Français [direct]
  16. 日本語 [direct]
  17. Português [direct]
  18. Русский [direct]
  19. Electron 中的流程 [direct]
  20. 最佳实践 [direct]
  21. 示例 [direct]
  22. Dark Mode [direct]
  23. 设备访问 [direct]
  24. 应用程序内购 [direct]
  25. 键盘快捷键 [direct]
  26. 深度链接 (Deep Links) [direct]
  27. Menus [direct]
  28. 多线程 [direct]
  29. 原生文件拖 & 放 [direct]
  30. 导航历史 [direct]
  31. 通知(Notifications) [direct]
  32. 离屏渲染 [direct]
  33. 在线/离线事件探测 [direct]
  34. 进度条 [direct]
  35. 最近的文件 [direct]
  36. 在 BrowserWindow 中展示文件 [direct]
  37. 拼写检查器 [direct]
  38. Web 嵌入 [direct]
  39. 任务栏自定义 [direct]
  40. 自定义窗口 [direct]
  41. 开发 [direct]
  42. Native Node Modules [direct]
  43. 分发 [direct]
  44. 检测和调试 [direct]
  45. 引用 [direct]
  46. 参与贡献 [direct]
  47. Adding Shortcuts to a Launcher [direct]
  48. freedesktop.org Specification [direct]
  49. 编辑此页面 [direct]
  50. 安全 [direct]
  51. Discord [direct]
  52. Bluesky [direct]
  53. X [direct]
  54. Mastodon [direct]
  55. Stack Overflow [direct]
  56. GitHub [direct]
  57. Open Collective [direct]
  58. 基础看板 [direct]
  59. OpenJS Foundation [direct]
  60. 商标政策 [direct]
  61. 商标列表 [direct]
  62. 使用条款 [direct]
  63. 隐私政策 [direct]
  64. 章程 [direct]
  65. 行为准则 [direct]
  66. Cookie 政策 [direct]