[newbies] Создать подменю Applications/Science, не работает для XFCE
Константин Яблочкин
yakonstb на yandex.ru
Вс Дек 4 20:30:06 MSK 2016
В brlcad ( http://git.altlinux.org/people/yakonstb/packages/?p=brlcad.git;a=summary ) кладу файлы .desktop, .directory, .menu в папки
/usr/share/applications
/usr/share/desktop-directories
/etc/xdg/menus/applications-merged
В Mate появляется подменю BRL-CAD в меню Science. И все кнопки идут туда и во вложенное туда подменю
В XFCE все кнопки лежат в меню Other
========= brlcad.menu ============
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
<Name>Applications</Name>
<Menu>
<Name>Science</Name>
<Menu>
<Name>brlcad</Name>
<Directory>brlcad.directory</Directory>
<Include>
<Category>BRL-CAD</Category>
</Include>
<Menu>
<Name>brlcad-doc</Name>
<Directory>brlcad-doc.directory</Directory>
<Include>
<Category>BRL-CAD-doc</Category>
</Include>
</Menu>
</Menu>
</Menu>
</Menu>
================ end ===========================
========= brlcad.directory ==========
[Desktop Entry]
Type=Directory
Icon=/usr/share/icons/brlcad/256x256/brlcad
Name=BRL-CAD
====== end =======
====== brlcad-doc.directory ============
[Desktop Entry]
Type=Directory
Icon=folder
Name=Documents
======= end =========
======= archer.desktop ========
[Desktop Entry]
Name=Archer
Comment=Archer - Constructive solid geometry (CSG) solid modeling computer-aided design (CAD) system
Exec=/usr/libexec/brlcad/bin/archer %f
Icon=/usr/share/icons/brlcad/256x256/archer
Type=Application
Categories=BRL-CAD;
MimeType=application/brlcad-v4;application/brlcad-v5;
====== end ========
====== brlcad-doc-animation.desktop =======
[Desktop Entry]
Name=BRL-CAD Animation
Comment=Animation Techniques in BRL-CAD
Exec=xdg-open /usr/libexec/brlcad/share/doc/html/manuals/Anim_Tutorial/index.html
Icon=/usr/share/icons/brlcad/256x256/brlcad-doc
Type=Application
Categories=BRL-CAD-doc;
====== end ======
Как сделать?
Подробная информация о списке рассылки devel-newbies