当我在 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
。