Menu Policy: различия между версиями
Ilis (обсуждение | вклад) Нет описания правки |
Ilis (обсуждение | вклад) |
||
Строка 52: | Строка 52: | ||
== О конверсии == | == О конверсии == | ||
{| | {| class="standard" | ||
|- | |- | ||
!Старое меню ALT Linux | |||
Старое меню | !соответствие freedesktop.org | ||
соответствие freedesktop.org | |||
|- | |- | ||
| | |Amusement/Adventure | ||
Amusement/Adventure | |AdventureGame;Game; | ||
| | |||
AdventureGame;Game; | |||
|- | |- | ||
| | |Amusement/Arcade | ||
Amusement/Arcade | |ArcadeGame;Game; | ||
| | |||
ArcadeGame;Game; | |||
|- | |- | ||
| | |Amusement/Boards | ||
Amusement/Boards | |BoardGame;Game; | ||
| | |||
BoardGame;Game; | |||
|- | |- | ||
| | |Amusement/Cards | ||
Amusement/Cards | |CardGame;Game; | ||
| | |||
CardGame;Game; | |||
|- | |- | ||
| | |Amusement/Puzzles | ||
Amusement/Puzzles | |LogicGame;Game; | ||
| | |||
LogicGame;Game; | |||
|- | |- | ||
| | |Amusement/Sports | ||
Amusement/Sports | |SportGame;Game; | ||
| | |||
SportGame;Game; | |||
|- | |- | ||
| | |Amusement/Strategy | ||
Amusement/Strategy | |StrategyGame;Game; | ||
| | |||
StrategyGame;Game; | |||
|- | |- | ||
| | |Amusement/Toys | ||
Amusement/Toys | |KidsGame;Game;Amusement; | ||
| | |||
KidsGame;Game;Amusement; | |||
|- | |- | ||
| | |Amusement/Other | ||
Amusement/Other | |Game;Amusement; | ||
| | |||
Game;Amusement; | |||
|- | |- | ||
| | |Applications/Accessibility | ||
Applications/Accessibility | |Accessibility;Utility; | ||
| | |||
Accessibility;Utility; | |||
|- | |- | ||
| | |Applications/Archiving | ||
Applications/Archiving | |Utility;Archiving; | ||
| | |||
Utility;Archiving; | |||
|- | |- | ||
| | |Applications/Archiving/Compression | ||
Applications/Archiving/Compression | |Utility;Archiving;Compression; | ||
| | |||
Utility;Archiving;Compression; | |||
|- | |- | ||
| | |Applications/Archiving/Cd burning | ||
Applications/Archiving/Cd burning | |DiscBurning;AudioVideo; | ||
| | |||
DiscBurning;AudioVideo; | |||
|- | |- | ||
| | |Applications/Archiving/Backup | ||
Applications/Archiving/Backup | |Utility;Archiving; | ||
| | |||
Utility;Archiving; | |||
|- | |- | ||
| | |Applications/Archiving/Other | ||
Applications/Archiving/Other | |Utility;Archiving; | ||
| | |||
Utility;Archiving; | |||
|- | |- | ||
|Applications/Communications | |||
| | | | ||
|- | |- | ||
| | |Applications/Databases | ||
Applications/Databases | |Database;[ choose Office or Development or AudioVideo ] | ||
| | |||
Database;[ choose Office or Development or AudioVideo ] | |||
|- | |- | ||
|Applications/Development | |||
| | | | ||
|- | |- | ||
|Applications/Development/Interpreters | |||
| | | | ||
|- | |- | ||
|Applications/Development/Code generators | |||
| | | | ||
|- | |- | ||
|Applications/Development/Development environments | |||
| | | | ||
|- | |- | ||
|Applications/Development/Tools | |||
| | | | ||
|- | |- | ||
|Applications/Editors | |||
| | | | ||
|- | |- | ||
|Applications/Emulators | |||
| | | | ||
|- | |- | ||
|Applications/File tools | |||
| | | | ||
|- | |- | ||
|Applications/Finances | |||
| | | | ||
|- | |- | ||
|Applications/Monitoring | |||
| | | | ||
|- | |- | ||
|Applications/Publishing | |||
| | | | ||
|- | |- | ||
|Applications/Sciences | |||
| | | | ||
|- | |- | ||
|Applications/Sciences/Astronomy | |||
| | | | ||
|- | |- | ||
|Applications/Sciences/Biology | |||
| | | | ||
|- | |- | ||
|Applications/Sciences/Chemistry | |||
| | | | ||
|- | |- | ||
|Applications/Sciences/Computer science | |||
| | | | ||
|- | |- | ||
|Applications/Sciences/Geosciences | |||
| | | | ||
|- | |- | ||
|Applications/Sciences/Mathematics | |||
| | | | ||
|- | |- | ||
|Applications/Sciences/Physics | |||
| | | | ||
|- | |- | ||
|Applications/Sciences/Other | |||
| | | | ||
|- | |- | ||
|Applications/Shells | |||
| | | | ||
|- | |- | ||
|Applications/Text tools | |||
| | | | ||
|- | |- | ||
|Chinese | |||
| | | | ||
|- | |- | ||
|Configuration/Boot and Init | |||
| | | | ||
|- | |- | ||
|Configuration/Hardware | |||
| | | | ||
|- | |- | ||
|Configuration/Networking | |||
| | | | ||
|- | |- | ||
|Configuration/Packaging | |||
| | | | ||
|- | |- | ||
|Configuration/Printing | |||
| | | | ||
|- | |- | ||
|Configuration/Other | |||
| | | | ||
|- | |- | ||
|Documentation | |||
| | | | ||
|- | |- | ||
|Edutainment/Languages | |||
| | | | ||
|- | |- | ||
|Edutainment/Mathematics | |||
| | | | ||
|- | |- | ||
|Edutainment/Science | |||
| | | | ||
|- | |- | ||
|Edutainment/Tools | |||
| | | | ||
|- | |- | ||
|Edutainment/Other | |||
| | | | ||
|- | |- | ||
|Multimedia/Graphics | |||
| | | | ||
|- | |- | ||
|Multimedia/Sound | |||
| | | | ||
|- | |- | ||
|Multimedia/Video | |||
| | | | ||
|- | |- | ||
|Networking/Chat | |||
| | | | ||
|- | |- | ||
|Networking/IRC | |||
| | | | ||
|- | |- | ||
|Networking/Instant messaging | |||
| | | | ||
|- | |- | ||
|Networking/File transfer | |||
| | | | ||
|- | |- | ||
|Networking/Mail | |||
| | | | ||
|- | |- | ||
|Networking/News | |||
| | | | ||
|- | |- | ||
|Networking/Remote access | |||
| | | | ||
|- | |- | ||
|Networking/WWW | |||
| | | | ||
|- | |- | ||
|Networking/Other | |||
| | | | ||
|- | |- | ||
|Office/Accessories | |||
| | | | ||
|- | |- | ||
| | |Office/AddressBooks | ||
Office/AddressBooks | |ContactManagement;Office; | ||
| | |||
ContactManagement;Office; | |||
|- | |- | ||
| | |Office/Graphs | ||
Office/Graphs | |Chart;Office; | ||
| | |||
Chart;Office; | |||
|- | |- | ||
| | |Office/PDA | ||
Office/PDA | |PDA;Office; | ||
| | |||
PDA;Office; | |||
|- | |- | ||
| | |Office/Presentations | ||
Office/Presentations | |Presentation;Office; | ||
| | |||
Presentation;Office; | |||
|- | |- | ||
| | |Office/Spreadsheets | ||
Office/Spreadsheets | |Spreadsheet;Office; | ||
| | |||
Spreadsheet;Office; | |||
|- | |- | ||
| | |Office/Tasks management | ||
Office/Tasks management | |ProjectManagement;Office; | ||
| | |||
ProjectManagement;Office; | |||
|- | |- | ||
| | |Office/Time management | ||
Office/Time management | |Clock;Calendar;Office; | ||
| | |||
Clock;Calendar;Office; | |||
|- | |- | ||
| | |Office/Wordprocessors | ||
Office/Wordprocessors | |WordProcessor;Office; | ||
| | |||
WordProcessor;Office; | |||
|- | |- | ||
|Session | |||
| | | | ||
|- | |- | ||
|Session/Windowmanagers | |||
| | | | ||
|- | |- | ||
|Terminals | |||
| | | | ||
|- | |- | ||
|Amusement | |||
| | | | ||
|- | |- | ||
|Applications | |||
| | | | ||
|- | |- | ||
|Configuration | |||
| | | | ||
|- | |- | ||
|Edutainment | |||
| | | | ||
|- | |- | ||
|Multimedia | |||
| | | | ||
|- | |- | ||
|Networking | |||
| | | | ||
|- | |- | ||
|Office | |||
| | | | ||
|} | |} | ||
Версия от 10:31, 15 марта 2009
Полиси по добавлению приложений в меню
TODO: Это полиси ещё не существует. Пишите!
Подход к построению меню
Определённость
Явный список поддерживаемых категорий
Как известно, .desktop файл может содержать что угодно и любую чепуху, она будет молча проигнорирована. И на глаз не очевидно, что будет, а что не будет проигнорировано, на первый взгляд категория может выглядеть как стандартная, но в списке ее не окажется :(
В СТУДИЮ нужен явный список поддерживаемых стандартных (например, в Mandriva 2007 никакие стандартные не поддерживаются :)) и Alt — специфических категорий.
Явная структура нового меню
Полный список всех папок
Для каждой папки указать канонический набор категорий, указав который, гарантированно получим нужный пункт меню.
Сбалансированность
принцип построения меню
если в подпапках, то в подпапках.
Весьма желательно. чтобы папка содержала либо подпапки, либо приложения, но не оба вместе.
Для этого при необходимости ввести категории
X-ALTLinux-БлаБлаБла-Other
как очень мудро было сделано в старом меню.
Преемственность
Поддержка папок из старого меню. Для каждой папки из старого меню указать ее образ в новом меню, при необходимости создав новую категорию. Пример. Configuration-Printing можно указать HardwareSettings;Settings. Хотя из соображений преемственности и usability лучше ввести специальную категорию X-ALTLinux-Configuration-Printing.
Нейтральность
.desktop файл позволяет указывать, в меню каких оконных менеджеров их показывать. Поэтому общесистемное меню должно быть оконно нейтральным, а для специфических примочек надо выделять отдельный набор .desktop файлов с указанием OnlyShowIn=БлаБла.
Примером, почему это важно служит текущая сборка KDE. Так, как там — делать нельзя. Там во всяких KDE’шных примочках меню стоит NotShowIn=GNOME. В результате на пользователей всех других оконных менеджеров (не KDE. и не GNOME) высыпается гора мусора. Чего стоит только одна надпись «Запуск терминала KDE в режиме суперпользователя» внутри промежуточного меню «Настройки» в IceWM, которая растягивает его на пол-экрана…
Вспоминается «Ужасное зрелище. Душераздирающее зрелище.» (с) ослик Иа.
О конверсии
Старое меню ALT Linux | соответствие freedesktop.org |
---|---|
Amusement/Adventure | AdventureGame;Game; |
Amusement/Arcade | ArcadeGame;Game; |
Amusement/Boards | BoardGame;Game; |
Amusement/Cards | CardGame;Game; |
Amusement/Puzzles | LogicGame;Game; |
Amusement/Sports | SportGame;Game; |
Amusement/Strategy | StrategyGame;Game; |
Amusement/Toys | KidsGame;Game;Amusement; |
Amusement/Other | Game;Amusement; |
Applications/Accessibility | Accessibility;Utility; |
Applications/Archiving | Utility;Archiving; |
Applications/Archiving/Compression | Utility;Archiving;Compression; |
Applications/Archiving/Cd burning | DiscBurning;AudioVideo; |
Applications/Archiving/Backup | Utility;Archiving; |
Applications/Archiving/Other | Utility;Archiving; |
Applications/Communications | |
Applications/Databases | Database;[ choose Office or Development or AudioVideo ] |
Applications/Development | |
Applications/Development/Interpreters | |
Applications/Development/Code generators | |
Applications/Development/Development environments | |
Applications/Development/Tools | |
Applications/Editors | |
Applications/Emulators | |
Applications/File tools | |
Applications/Finances | |
Applications/Monitoring | |
Applications/Publishing | |
Applications/Sciences | |
Applications/Sciences/Astronomy | |
Applications/Sciences/Biology | |
Applications/Sciences/Chemistry | |
Applications/Sciences/Computer science | |
Applications/Sciences/Geosciences | |
Applications/Sciences/Mathematics | |
Applications/Sciences/Physics | |
Applications/Sciences/Other | |
Applications/Shells | |
Applications/Text tools | |
Chinese | |
Configuration/Boot and Init | |
Configuration/Hardware | |
Configuration/Networking | |
Configuration/Packaging | |
Configuration/Printing | |
Configuration/Other | |
Documentation | |
Edutainment/Languages | |
Edutainment/Mathematics | |
Edutainment/Science | |
Edutainment/Tools | |
Edutainment/Other | |
Multimedia/Graphics | |
Multimedia/Sound | |
Multimedia/Video | |
Networking/Chat | |
Networking/IRC | |
Networking/Instant messaging | |
Networking/File transfer | |
Networking/Mail | |
Networking/News | |
Networking/Remote access | |
Networking/WWW | |
Networking/Other | |
Office/Accessories | |
Office/AddressBooks | ContactManagement;Office; |
Office/Graphs | Chart;Office; |
Office/PDA | PDA;Office; |
Office/Presentations | Presentation;Office; |
Office/Spreadsheets | Spreadsheet;Office; |
Office/Tasks management | ProjectManagement;Office; |
Office/Time management | Clock;Calendar;Office; |
Office/Wordprocessors | WordProcessor;Office; |
Session | |
Session/Windowmanagers | |
Terminals | |
Amusement | |
Applications | |
Configuration | |
Edutainment | |
Multimedia | |
Networking | |
Office |
Ссылки
- ftp://ftp.altlinux.ru/pub/people/zerg/menu/menu-packaging-howto-current.txt
- ftp://ftp.altlinux.ru/pub/people/zerg/menu/menu-policy-current.txt
- http://standards.freedesktop.org/menu-spec/menu-spec-latest.html
- http://mdv.vmlinuz.ca/Development/Howto/XDGMenuSystem
- http://fedora.redhat.com/docs/developers-guide/ch-menus.html