gpt4 book ai didi

linux - 确定 Nemo 上下文菜单操作顺序

转载 作者:太空宇宙 更新时间:2023-11-04 09:59:43 25 4
gpt4 key购买 nike

我有以下问题/疑问我在这里寻求帮助/答案。 :)我正在使用带有 Cinnamon UI 的 Debian 9,到目前为止它运行良好。

我最近开始熟悉 nemo操作,以便使用我的条目扩展上下文菜单。虽然这有效,但我无法弄清楚如何确定菜单点的显示顺序。我尝试了为 .nemo_action 文件(例如 udev 规则等)使用两位数开头的常用方法,更改 zhe 操作名称,......但是,我无法弄清楚这背后的算法是什么

任何人都可以阐明这一点吗?

我什至可以接受这样的回答:“你需要修改这里的代码……”到目前为止我在互联网上找到的唯一东西: https://forums.linuxmint.com/viewtopic.php?t=178757

提前致谢。

最佳答案

好的,找到了...nemo_action_manager.c, set_up_actions():

file_list = nemo_directory_get_file_list (directory);
// AlexG: List seems to be retrieved unsorted, so let's sort it.
// Then the order of menu items is == alphabetical order of nemo action file names
file_list = g_list_sort(file_list, _cbSortFileList);
[...]

关于linux - 确定 Nemo 上下文菜单操作顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57279720/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com