From 07e3ef460dfceea4e707a4fb08d239dc80d6b93a Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez <ruben@trisquel.info> Date: Fri, 7 Apr 2017 17:10:14 -0400 Subject: [PATCH] Added make-mate-menus --- helpers/DATA/mate-menus/applications.menu | 276 ++++++++++++++++++++++ helpers/make-mate-menus | 30 +++ 2 files changed, 306 insertions(+) create mode 100644 helpers/DATA/mate-menus/applications.menu create mode 100644 helpers/make-mate-menus diff --git a/helpers/DATA/mate-menus/applications.menu b/helpers/DATA/mate-menus/applications.menu new file mode 100644 index 00000000..f69eaba8 --- /dev/null +++ b/helpers/DATA/mate-menus/applications.menu @@ -0,0 +1,276 @@ +<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" + "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd"> + +<Menu> + + <Name>Applications</Name> + <Directory>mate-menu-applications.directory</Directory> + + <!-- Scan legacy dirs first, as later items take priority --> + <KDELegacyDirs/> + <LegacyDir>/etc/X11/applnk</LegacyDir> + <LegacyDir>/usr/share/mate/apps</LegacyDir> + + <!-- Read standard .directory and .desktop file locations --> + <DefaultAppDirs/> + <DefaultDirectoryDirs/> + + <!-- Read in overrides and child menus from applications-merged/ --> + <DefaultMergeDirs/> + <MergeDir>applications-merged</MergeDir> + + <!-- Accessories submenu --> + <Menu> + <Name>Accessories</Name> + <Directory>Utility.directory</Directory> + <Include> + <Or> + <Category>Utility</Category> + <Category>Accessibility</Category> + </Or> + <Filename>mate-dictionary.desktop</Filename> + <Filename>gnome-dictionary.desktop</Filename> + <Filename>evince.desktop</Filename> + <Filename>atril.desktop</Filename> + </Include> + <Exclude> + <Category>System</Category> + <Category>Settings</Category> + <Filename>nautilus.desktop</Filename> + <Filename>caja.desktop</Filename> + <Filename>vim.desktop</Filename> + </Exclude> + </Menu> <!-- End Accessories --> + + <!-- Accessibility submenu items are inside Accessories in Trisquel + <Menu> + <Name>Universal Access</Name> + <Directory>Utility-Accessibility.directory</Directory> + <Include> + <And> + <Category>Accessibility</Category> + <Not><Category>Settings</Category></Not> + </And> + </Include> + </Menu> End Accessibility --> + + <!-- Development Tools --> + <Menu> + <Name>Development</Name> + <Directory>Development.directory</Directory> + <Include> + <And> + <Category>Development</Category> + </And> + <Filename>emacs.desktop</Filename> + </Include> + </Menu> <!-- End Development Tools --> + + <!-- Education --> + <Menu> + <Name>Education</Name> + <Directory>Education.directory</Directory> + <Include> + <And> + <Category>Education</Category> + <Not><Category>Science</Category></Not> + </And> + </Include> + </Menu> <!-- End Education --> + + <!-- Science --> + <Menu> + <Name>Science</Name> + <Directory>GnomeScience.directory</Directory> + <Include> + <And> + <Category>Education</Category> + <Category>Science</Category> + </And> + </Include> + <Exclude> + <Filename>libreoffice-math.desktop</Filename> + </Exclude> + + </Menu> <!-- End Science --> + + <!-- Games --> + <Menu> + <Name>Games</Name> + <Directory>Game.directory</Directory> + <Include> + <And> + <Category>Game</Category> + </And> + </Include> + <Exclude> + <Filename>freecell.desktop</Filename> + </Exclude> + </Menu> <!-- End Games --> + + <!-- Graphics --> + <Menu> + <Name>Graphics</Name> + <Directory>Graphics.directory</Directory> + <Include> + <And> + <Category>Graphics</Category> + </And> + </Include> + <Exclude> + <Filename>libreoffice-draw.desktop</Filename> + <Filename>display.im6.desktop</Filename> + <Filename>atril.desktop</Filename> + <Filename>evince.desktop</Filename> + </Exclude> + </Menu> <!-- End Graphics --> + + <!-- Internet --> + <Menu> + <Name>Internet</Name> + <Directory>Network.directory</Directory> + <Layout> + <Filename>icecat.desktop</Filename> + <Filename>abrowser-3.0.desktop</Filename> + <Filename>abrowser-3.5.desktop</Filename> + <Filename>abrowser.desktop</Filename> + <Filename>iceweasel.desktop</Filename> + <Filename>firefox.desktop</Filename> + <Filename>epiphany.desktop</Filename> + <Filename>epiphany-gecko.desktop</Filename> + <Filename>evolution.desktop</Filename> + <Filename>thunderbird.desktop</Filename> + <Filename>icedove.desktop</Filename> + <Filename>pidgin.desktop</Filename> + <Filename>gwibber.desktop</Filename> + <Filename>liferea.desktop</Filename> + <Filename>remmina.desktop</Filename> + <Filename>tsclient.desktop</Filename> + <Filename>ekiga.desktop</Filename> + <Filename>xchat.desktop</Filename> + <Filename>amule.desktop</Filename> + <Filename>transmission.desktop</Filename> + <Merge type="files"/> + </Layout> + <Include> + <Filename>evolution.desktop</Filename> + <And> + <Category>Network</Category> + </And> + </Include> + <Exclude> + <Filename>evolution-settings.desktop</Filename> + <Filename>vino-preferences.desktop</Filename> + </Exclude> + </Menu> <!-- End Internet --> + + <!-- Multimedia --> + <Menu> + <Name>Multimedia</Name> + <Directory>AudioVideo.directory</Directory> + <Layout> + <Filename>totem.desktop</Filename> + <Filename>exaile.desktop</Filename> + <Merge type="files"/> + </Layout> + <Include> + <And> + <Category>AudioVideo</Category> + </And> + </Include> + <Exclude> + <Filename>gnash.desktop</Filename> + </Exclude> + </Menu> <!-- End Multimedia --> + + <!-- Office --> + <Menu> + <Name>Office</Name> + <Directory>Office.directory</Directory> + <Layout> + <Filename>libreoffice-writer.desktop</Filename> + <Filename>libreoffice-calc.desktop</Filename> + <Filename>libreoffice-impress.desktop</Filename> + <Filename>libreoffice-base.desktop</Filename> + <Filename>libreoffice-draw.desktop</Filename> + <Filename>libreoffice-math.desktop</Filename> + <Filename>lyx.desktop</Filename> + <Filename>mate-dictionary.desktop</Filename> + <Filename>gnome-dictionary.desktop</Filename> + <Merge type="files"/> + </Layout> + <Include> + <And> + <Category>Office</Category> + </And> + </Include> + <Exclude> + <Filename>mate-dictionary.desktop</Filename> + <Filename>gnome-dictionary.desktop</Filename> + <Filename>atril.desktop</Filename> + <Filename>evince.desktop</Filename> + <Filename>evolution.desktop</Filename> + <Filename>libreoffice-startcenter.desktop</Filename> + </Exclude> + </Menu> <!-- End Office --> + + <!-- System Tools is disabled in Trisquel, goes into gnome-control-center + <Menu> + <Name>System</Name> + <Directory>System-Tools.directory</Directory> + <Include> + <And> + <Category>System</Category> + <Not><Category>Settings</Category></Not> + <Not><Category>Game</Category></Not> + </And> + </Include> + </Menu> End System Tools --> + + <!-- Other --> + <Menu> + <Name>Other</Name> + <Directory>X-GNOME-Other.directory</Directory> + <OnlyUnallocated/> + <Include> + <And> + <Not><Category>Core</Category></Not> + <Not><Category>Screensaver</Category></Not> <Not><Category>System</Category></Not> <Not><Category>Settings</Category></Not> + <Not><Category>X-GNOME-Settings-Panel</Category></Not> + </And> + </Include> + </Menu> <!-- End Other --> + + <!-- The Debian menu --> + <Menu> + <Name>Debian</Name> + <MergeFile>debian-menu.menu</MergeFile> + <Directory>Debian.directory</Directory> + </Menu> + +<Include> + <Filename>gnome-app-install.desktop</Filename> + <Filename>mate-control-center.desktop</Filename> +</Include> + +<!-- Separator between menus and gnome-app-install --> +<Layout> + <Merge type="menus"/> + <Merge type="files"/> + <Menuname>Internet</Menuname> + <Menuname>Office</Menuname> + <Menuname>Education</Menuname> + <Menuname>Development</Menuname> + <Menuname>Graphics</Menuname> + <Menuname>Multimedia</Menuname> + <Menuname>Games</Menuname> + <Menuname>Accessories</Menuname> + <Menuname>Debian</Menuname> + <Menuname>Other</Menuname> + <Menuname>wine-wine</Menuname> + <Separator/> + <Filename>gnome-app-install.desktop</Filename> + <Filename>gnome-control-center.desktop</Filename> +</Layout> + +</Menu> <!-- End Applications --> diff --git a/helpers/make-mate-menus b/helpers/make-mate-menus new file mode 100644 index 00000000..37e75584 --- /dev/null +++ b/helpers/make-mate-menus @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Copyright (C) 2014 Ruben Rodriguez <ruben@trisquel.info> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=1 +COMPONENT=main + +. ./config + +cp $DATA/applications.menu layout/mate-applications.menu + +changelog "Default layout adapted for Trisquel" + +compile + -- GitLab