From 3f397745b83622b8029220a85e32601ca9d16eb6 Mon Sep 17 00:00:00 2001 From: Adam Feldman Date: Tue, 7 Apr 2020 14:49:40 -0400 Subject: [PATCH] mate-base/mate-menus: Finish cleaneup of #633334 Bug: https://bugs.gentoo.org/633334 Package-Manager: Portage-2.3.96, Repoman-2.3.21 Signed-off-by: Adam Feldman --- mate-base/mate-menus/files/10-xdg-menu-mate-r1 | 9 +++++++++ ...e-menus-1.22.1.ebuild => mate-menus-1.22.1-r1.ebuild} | 2 +- ...e-menus-1.24.0.ebuild => mate-menus-1.24.0-r1.ebuild} | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 mate-base/mate-menus/files/10-xdg-menu-mate-r1 rename mate-base/mate-menus/{mate-menus-1.22.1.ebuild => mate-menus-1.22.1-r1.ebuild} (93%) rename mate-base/mate-menus/{mate-menus-1.24.0.ebuild => mate-menus-1.24.0-r1.ebuild} (93%) diff --git a/mate-base/mate-menus/files/10-xdg-menu-mate-r1 b/mate-base/mate-menus/files/10-xdg-menu-mate-r1 new file mode 100644 index 000000000000..01a5610c0852 --- /dev/null +++ b/mate-base/mate-menus/files/10-xdg-menu-mate-r1 @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -z "$XDG_MENU_PREFIX" ] && \ + [ "$XDG_CURRENT_DESKTOP" = "MATE" -o \ + "$XDG_SESSION_DESKTOP" = "mate" -o \ + "$DESKTOP_SESSION" = "mate" ] +then + export XDG_MENU_PREFIX=mate- +fi diff --git a/mate-base/mate-menus/mate-menus-1.22.1.ebuild b/mate-base/mate-menus/mate-menus-1.22.1-r1.ebuild similarity index 93% rename from mate-base/mate-menus/mate-menus-1.22.1.ebuild rename to mate-base/mate-menus/mate-menus-1.22.1-r1.ebuild index c93dbf13c79c..aa489e3e46e1 100644 --- a/mate-base/mate-menus/mate-menus-1.22.1.ebuild +++ b/mate-base/mate-menus/mate-menus-1.22.1-r1.ebuild @@ -40,5 +40,5 @@ src_install() { mate_src_install exeinto /etc/X11/xinit/xinitrc.d/ - doexe "${FILESDIR}/10-xdg-menu-mate" + newexe "${FILESDIR}/10-xdg-menu-mate-r1" "10-xdg-menu-mate" } diff --git a/mate-base/mate-menus/mate-menus-1.24.0.ebuild b/mate-base/mate-menus/mate-menus-1.24.0-r1.ebuild similarity index 93% rename from mate-base/mate-menus/mate-menus-1.24.0.ebuild rename to mate-base/mate-menus/mate-menus-1.24.0-r1.ebuild index e927b3f8c6da..e0a404983b34 100644 --- a/mate-base/mate-menus/mate-menus-1.24.0.ebuild +++ b/mate-base/mate-menus/mate-menus-1.24.0-r1.ebuild @@ -38,5 +38,5 @@ src_install() { mate_src_install exeinto /etc/X11/xinit/xinitrc.d/ - doexe "${FILESDIR}/10-xdg-menu-mate" + newexe "${FILESDIR}/10-xdg-menu-mate-r1" "10-xdg-menu-mate" } -- 2.26.2