Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038282
en ru br
Репозитории ALT
S:2.1.41-alt23
5.1: 2.1.41-alt9
4.1: 2.1.41-alt3.M41.1
4.0: 2.1.35-alt5
3.0: 2.1.25-alt3
+backports:2.1.29-alt4.0.M30
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: menu

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#!/usr/sbin/install-menu
# freedesktop menu spec - menu generation
# http://www.freedesktop.org/Standards/menu-spec
# Also used as /etc/menu-methods/kicker
# Copyright 2004 - Chris Cheney <ccheney@debian.org>
# Licensed under the GNU General Public License, version 2.

compat="menu-1"

!include menu.h

compat="menu-2"

function TopDirs() =
ifempty($section,
"<DefaultAppDirs/>\n"
"<DefaultDirectoryDirs/>\n"
ifroot(
"<AppDir>/usr/share/applications-alt</AppDir>\n"
"<DirectoryDir>/usr/share/desktop-directories-alt</DirectoryDir>\n",
"<AppDir>" parent(parent(prefix())) "/.local/share/applications-alt</AppDir>\n"
"<DirectoryDir>" parent(parent(prefix())) "/.local/share/desktop-directories-alt</DirectoryDir>\n"
));

function BottomDirs() =
ifempty($section,
"<DefaultMergeDirs/>\n"
"<MergeFile>applications-menueditor.menu</MergeFile>\n");

function DirEntry() =
TopDirs()
"<Name>" title() "</Name>\n"
"<Directory>" "alt" replacewith(tolower($section),"/ ","--") ".directory" "</Directory>\n"
"<Include>\n"
"<Category>" "X-ALT" replacewith($section,"/ .","---") "</Category>\n"
"</Include>\n";

#outputencoding="UTF-8";

supported;
gnome = ;
kde = ;
x11 = ;
text = ;
endsupported;

startmenu = "\n<Menu>\n" DirEntry();
endmenu = BottomDirs() "</Menu>\n";
submenutitle = "";

treewalk = "(M)";

rootsection = "";

genmenu = "applications.menu.new";

prerun = "rm -f " prefix()"/applications.menu.new";
postrun = "mv -f " prefix() "/applications.menu.new " prefix()"/applications.menu";

preoutput = "<!DOCTYPE Menu PUBLIC \"-//freedesktop//DTD Menu 1.0//EN\"\n \"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd\">\n<!-- Automatically generated do not edit -->\n";
postoutput = "";

rootprefix = "/etc/xdg/menus-alt";
userprefix = ".config/menus-alt";

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin