首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何删除UbuntuBudgie19.04中的空主菜单类别?

如何删除UbuntuBudgie19.04中的空主菜单类别?
EN

Ask Ubuntu用户
提问于 2019-08-14 16:50:01
回答 3查看 563关注 0票数 2

我在菜单编辑器中为应用程序下的菜单添加了一个应用程序,但随后系统创建了一个空的底部类别条目"Other“(如图-https://pasteboard.co/IsFHcd9.png中所示)。我不知道如何删除它,并按照https://www.phoronix.com/scan.php?page=news_item&px=MenuLibre-2.1.5-发布http://forum.manjaro.org/t/budgie-menu-configure-edit-how-to/44669的建议使用C3或编辑.desktop文件(op Cit)。只做了另一个空的菜单项。

EN

回答 3

Ask Ubuntu用户

发布于 2019-08-14 21:57:44

并不是只有您发现Menulibre是一个令人不满意(尽管是官方的)解决方案第789期 第939期。你不妨加入那些聚集在一起的人的声音,以鼓励令人满意的解决办法。在那之前,你试过上诉人 (更多)吗?这就要求:

代码语言:javascript
复制
sudo apt install flatpak  
sudo flatpak remote-add --if-not-exists flathub  https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub com.github.donadigo.appeditor
票数 1
EN

Ask Ubuntu用户

发布于 2021-03-03 11:45:12

至于K7AAY,我发现在我的系统中最主要的原因是脑膜炎。如果我有足够的声誉,我会对他的回答发表评论。

Alacarte显示了包含自定义生成菜单项的空类别。它们作为“menulibre-.”.desktop文件存储在..local/share/application中。

我删除了它们,用阿拉卡尔特创建了新的,从而解决了问题。

票数 0
EN

Ask Ubuntu用户

发布于 2021-07-24 08:02:35

我发现我还在系统菜单中为我创建了一个额外的菜单项,因此在该菜单中有一个重复的菜单,其中有一个重复的条目,尽管我不能确定是当我在menulibre中按下“保存”时,还是某个应用程序安装了它。

我追踪到了~/.config/menus中的一个D2条目:

代码语言:javascript
复制
$ cd ~/.config
$ ll -R menus/
menus/:
total 4.0K
drwx------ 2 neil neil 4.0K Jul 24 13:12 applications-merged
lrwxrwxrwx 1 neil neil   19 Jul 24 13:12 gnome-applications-merged -> applications-merged

menus/applications-merged:
total 4.0K
-rw------- 1 neil neil 421 Jul 24 13:12 user-xfce-network.menu

我没有任何其他文件在那里,所以我能够rm -rf ~/.config/menus和下一次我点击菜单按钮,额外的条目消失了。

删除特定的*.menu条目就足够了。

我决定继续使用手工编辑,并且由于menulibre本身显示的一些内部不一致之处:

代码语言:javascript
复制
sudo apt purge menulibre

您可以参考FreeDesktop菜单和文件位置规范,以获得手动管理应用程序和菜单的指导:

要更好地理解菜单,xdg-desktop-menu手册页面是一个紧凑和快速的介绍要点,您需要了解,以查找和管理您的菜单。您可以在“菜单”或“xdg”上搜索其他有用的命令:

代码语言:javascript
复制
$ man -k xdg
user-dirs.conf (5)   - configuration for xdg-user-dirs-update
user-dirs.defaults (5) - default settings for XDG user dirs
user-dirs.dirs (5)   - settings for XDG user dirs
xdg-dbus-proxy (1)   - D-Bus proxy
xdg-desktop-icon (1) - command line tool for (un)installing icons to the desktop
xdg-desktop-menu (1) - command line tool for (un)installing desktop menu items
xdg-email (1)        - command line tool for sending mail using the user's preferred e-mail composer
xdg-icon-resource (1) - command line tool for (un)installing icon resources
xdg-mime (1)         - command line tool for querying information about file type handling and adding descriptions for new file types
xdg-open (1)         - opens a file or URL in the user's preferred application
xdg-screensaver (1)  - command line tool for controlling the screensaver
xdg-settings (1)     - get various settings from the desktop environment
xdg-user-dir (1)     - Find an XDG user dir
xdg-user-dirs-update (1) - Update XDG user dir configuration

$ man -k menu
grub-menulst2cfg (1) - transform legacy menu.lst into grub.cfg
menulibre (1)        - advanced fd.o compliant menu editor
menulibre-menu-validate (1) - display GMenu debug output
xdg-desktop-menu (1) - command line tool for (un)installing desktop menu items
xfce4-popup-menu (1) - shows the Xfce Menu
xfce4-popup-whiskermenu (1) - shows Whisker Menu

我还发现,desktop-file-validate可以从Xubuntu的menulibre中单独获得。此验证器没有发现menulibre不一致抱怨的桌面文件有什么问题:

代码语言:javascript
复制
$ sudo desktop-file-validate /usr/share/applications/dropbox.desktop
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1165752

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档