![如何向 gnome ubuntu 中的下拉菜单添加更多功能?](https://linux22.com/image/984979/%E5%A6%82%E4%BD%95%E5%90%91%20gnome%20ubuntu%20%E4%B8%AD%E7%9A%84%E4%B8%8B%E6%8B%89%E8%8F%9C%E5%8D%95%E6%B7%BB%E5%8A%A0%E6%9B%B4%E5%A4%9A%E5%8A%9F%E8%83%BD%EF%BC%9F.png)
当我在 gnome 的活动栏中单击一个打开的程序时,我收到的只是退出程序的选项,这个下拉菜单是否有任何方法可以显示更多操作。例如,当我使用 Nautilus 时,通过单击下拉菜单,我收到以下选项
新窗户
侧边栏
优先
ETC
所以我希望其他程序也能有这个功能,也就是说我希望 Google Chrome 有这些菜单。那么有人知道如何将这些菜单添加到 gnome 3.16 吗?
答案1
您可能正在寻找“nautilus 扩展”。Nautilus 是 Unity 和 gnome-shell 桌面中使用的文件管理器的真实名称。
您可以编写扩展:
但是,就个人经验而言,预计会发现大量过时的文档,并且缺乏清晰、最新的文档。入门的最佳方式可能是尝试挖掘可用扩展的来源:
[romano:~] % wajig search nautilus | grep extens
libnautilus-extension-dev - libraries for nautilus components - development version
libnautilus-extension1a - libraries for nautilus components - runtime version
nautilus-share - Nautilus extension to share folder using Samba
nautilus-actions - nautilus extension to configure programs to launch
nautilus-compare - Context menu comparison extension for Nautilus file manager
nautilus-filename-repairer - Nautilus extension for filename encoding repair
nautilus-gtkhash - nautilus extension for computing checksums and more using gtkhash
nautilus-image-converter - nautilus extension to mass resize or rotate images
nautilus-pastebin - Nautilus extension to send files to a pastebin
nautilus-wipe - Secure deletion extension for Nautilus
rabbitvcs-nautilus - Nautilus extension for RabbitVCS
tortoisehg-nautilus - Graphical tool for working with Mercurial (Nautilus extension)
clamtk-nautilus - Nautilus MenuProvider extension for clamtk
nautilus-pushbullet - An extension for Nautilus to send files with pushbullet
..还有更多,例如nautilus-script-manager
,nautilus-scripts-manager
(是的,它们是不同的!),或者nautilus-image-manipulator
和nautilus-open-terminal
。