From b7d5a25f847cb2279b29c458b5c4eb68fe7b6568 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Sun, 12 Feb 2023 15:38:32 -0500
Subject: [PATCH] mate-tweak: provide marco-compton.desktop

---
 helpers/make-mate-tweak | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/helpers/make-mate-tweak b/helpers/make-mate-tweak
index 30c493f7..db894afd 100644
--- a/helpers/make-mate-tweak
+++ b/helpers/make-mate-tweak
@@ -18,7 +18,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=15
+VERSION=16
 
 . ./config
 
@@ -72,6 +72,30 @@ exec \$WINDOW_MANAGER
 EOF
 chmod 755 marco-compton
 
+cat << EOF > data/marco-compton.desktop
+[Desktop Entry]
+Type=Application
+Name=Marco Compton
+Exec=marco-compton
+NoDisplay=true
+# name of loadable control center module
+X-MATE-WMSettingsModule=marco
+# name we put on the WM spec check window
+X-MATE-WMName=Marco
+# back compat only
+X-MateWMSettingsLibrary=marco
+X-MATE-Bugzilla-Bugzilla=MATE
+X-MATE-Bugzilla-Product=marco
+X-MATE-Bugzilla-Component=general
+X-GNOME-Autostart-Phase=WindowManager
+X-MATE-Autostart-Phase=WindowManager
+X-GNOME-Provides=windowmanager
+X-MATE-Provides=windowmanager
+X-GNOME-Autostart-Notify=true
+X-MATE-Autostart-Notify=true
+EOF
+sed "/marco-no-composite.desktop/a\ \ \ \ ('{prefix}/share/applications'.format(prefix=sys.prefix), ['data/marco-compton.desktop',])," -i setup.py
+
 # Add Trisquel to layout list
 sed 's/fedora/trisquel/g; s/Fedora/Trisquel/' -i mate-tweak
 
-- 
GitLab