| 1 |
#!/usr/sbin/install-menu
|
| 2 |
# freedesktop desktop entry spec - applications generation
|
| 3 |
# http://www.freedesktop.org/Standards/desktop-entry-spec
|
| 4 |
# Copyright 2004 - Chris Cheney
|
| 5 |
# Licensed under the GNU General Public License, version 2.
|
| 6 |
|
| 7 |
!include menu.h
|
| 8 |
|
| 9 |
compat="menu-2"
|
| 10 |
|
| 11 |
function AppEntry($terminal) =
|
| 12 |
"[Desktop Entry]\n"
|
| 13 |
"Type=Application\n"
|
| 14 |
"Encoding=UTF-8\n"
|
| 15 |
"Name=" title() "\n"
|
| 16 |
"GenericName=" title() "\n"
|
| 17 |
"Comment=" ifnempty($longtitle,$longtitle) "\n"
|
| 18 |
"Icon=" icon() "\n"
|
| 19 |
"Exec=" $command "\n"
|
| 20 |
"Terminal=" $terminal "\n"
|
| 21 |
"Categories=X-Debian" replacewith($basesection,"/","-") "\n";
|
| 22 |
|
| 23 |
outputencoding="UTF-8";
|
| 24 |
|
| 25 |
supported;
|
| 26 |
x11 = AppEntry("false");
|
| 27 |
text = AppEntry("true");
|
| 28 |
endsupported;
|
| 29 |
|
| 30 |
startmenu = "";
|
| 31 |
endmenu = "";
|
| 32 |
submenutitle = "";
|
| 33 |
|
| 34 |
treewalk = "M";
|
| 35 |
|
| 36 |
genmenu = ifnempty($command,tolower(replacewith($title,"/ ","_") ".desktop"));
|
| 37 |
|
| 38 |
rootsection = "";
|
| 39 |
|
| 40 |
prerun = "rm -rf " prefix() "/*";
|
| 41 |
|
| 42 |
preoutput = "";
|
| 43 |
|
| 44 |
rootprefix = "/var/lib/kde/debian-apps";
|
| 45 |
|
| 46 |
userprefix = ".local/share/applications/kde/debian";
|