编辑原始 Nautilus 上下文菜单

发布于 2024-09-10 22:37:54 字数 247 浏览 2 评论 0原文

有谁知道简化 Nautilus 中标准上下文(右键单击)菜单的方法?我正在为不经常使用计算机的人制作一个非常简化的界面,并且我想使用 Nautilus 作为文件管理器。我使用 nautilus-action 在上下文菜单中添加了一些操作,但我想删除标准的复制/粘贴/创建文件夹/创建链接以及几乎所有其余的操作。我在我的系统上没有找到任何 XML 或其他配置文件,我在 Nautilus 的源代码上使用 grep 来查找它的位置,因为我怀疑它是硬编码的,但到目前为止还没有什么乐趣。

Does anyone know a way to simplify the standard context (right click) menu in Nautilus? I am making a very simplified interface for people who don't use computers very often, and I want to use Nautilus as File Manager. I have added some actions to the context menu using nautilus-action, but I want to remove the standard Copy/Paste/Create Folder/Create link and pretty much all the rest. I haven't found any XML or other config file on my system, I have used grep on Nautilus' sources to find where it is, because I suspect it is hard coded, but no joy so far.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦旅人picnic 2024-09-17 22:37:54

菜单模式位于 Nautilus 源代码中的文件 nautilus-directory-view-ui.xml 中(如果您正在编译它),或者位于 /usr/share/nautilus/ui/ 中。如果 nautilus 已安装,请在终端中使用“nautilus -q && nautilus”来应用更改。

The menu schema is located in the file nautilus-directory-view-ui.xml within Nautilus' sources if you are compiling it, or in /usr/share/nautilus/ui/. If nautilus is already installed, use "nautilus -q && nautilus" in a terminal to apply changes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文