From 97677f50886578452133f5991c55a74ab95073f4 Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Tue, 20 Aug 2019 00:07:13 +0200
Subject: [PATCH] Migrate the desktop actions from the ancient Unity syntax to
 the current freedesktop.org standard.

---
 packages/linux_make/pd-l2ork-debug.desktop     | 8 ++++----
 packages/linux_make/pd-l2ork-k12-debug.desktop | 8 ++++----
 packages/linux_make/pd-l2ork-k12.desktop       | 8 ++++----
 packages/linux_make/pd-l2ork.desktop           | 8 ++++----
 4 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/packages/linux_make/pd-l2ork-debug.desktop b/packages/linux_make/pd-l2ork-debug.desktop
index dd241721d..931efd470 100755
--- a/packages/linux_make/pd-l2ork-debug.desktop
+++ b/packages/linux_make/pd-l2ork-debug.desktop
@@ -5,21 +5,21 @@ Exec=bash -c "( echo r ; cat ) | gdb --args pd-l2ork -rt -audiobuf 20 -d 3 %U"
 Terminal=true
 Type=Application
 Icon=pd-l2ork-red.xpm
-X-Ayatana-Desktop-Shortcuts=ALSA;JACK;ForceQuit
+Actions=ALSA;JACK;ForceQuit
 Categories=AudioVideo;Audio;
 MimeType=application/x-puredata;
 
-[ALSA Shortcut Group]
+[Desktop Action ALSA]
 Name=ALSA
 Exec=pd-l2ork -rt -alsa -audiobuf 20 -d 3 %U
 TargetEnvironment=Unity
 
-[JACK Shortcut Group]
+[Desktop Action JACK]
 Name=JACK
 Exec=pd-l2ork -rt -jack -audiobuf 20 -d 3 %U
 TargetEnvironment=Unity
 
-[ForceQuit Shortcut Group]
+[Desktop Action ForceQuit]
 Name=Force Quit Pd-L2Ork
 Exec=/usr/bin/killall pd-l2ork pd-gui
 TargetEnvironment=Unity
diff --git a/packages/linux_make/pd-l2ork-k12-debug.desktop b/packages/linux_make/pd-l2ork-k12-debug.desktop
index d93b8c0d0..c1088afca 100755
--- a/packages/linux_make/pd-l2ork-k12-debug.desktop
+++ b/packages/linux_make/pd-l2ork-k12-debug.desktop
@@ -5,21 +5,21 @@ Exec=bash -c "( echo r ; cat ) | gdb --args pd-l2ork -k12 -noautopatch -rt -audi
 Terminal=true
 Type=Application
 Icon=pd-l2ork-k12-red.xpm
-X-Ayatana-Desktop-Shortcuts=ALSA;JACK;ForceQuit
+Actions=ALSA;JACK;ForceQuit
 Categories=AudioVideo;Audio;
 MimeType=application/x-puredata;
 
-[ALSA Shortcut Group]
+[Desktop Action ALSA]
 Name=ALSA
 Exec=pd-l2ork -k12 -noautopatch -rt -alsa -audiobuf 20 -d 3 %U
 TargetEnvironment=Unity
 
-[JACK Shortcut Group]
+[Desktop Action JACK]
 Name=JACK
 Exec=pd-l2ork -k12 -noautopatch -rt -jack -audiobuf 20 -d 3 %U
 TargetEnvironment=Unity
 
-[ForceQuit Shortcut Group]
+[Desktop Action ForceQuit]
 Name=Force Quit Pd-L2Ork
 Exec=/usr/bin/killall pd-l2ork pd-gui
 TargetEnvironment=Unity
diff --git a/packages/linux_make/pd-l2ork-k12.desktop b/packages/linux_make/pd-l2ork-k12.desktop
index a478544a7..077520048 100755
--- a/packages/linux_make/pd-l2ork-k12.desktop
+++ b/packages/linux_make/pd-l2ork-k12.desktop
@@ -5,21 +5,21 @@ Exec=pd-l2ork -k12 -noautopatch -rt -audiobuf 20 %U
 Terminal=false
 Type=Application
 Icon=pd-l2ork-k12.xpm
-X-Ayatana-Desktop-Shortcuts=ALSA;JACK;ForceQuit
+Actions=ALSA;JACK;ForceQuit
 Categories=AudioVideo;Audio;
 MimeType=application/x-puredata;
 
-[ALSA Shortcut Group]
+[Desktop Action ALSA]
 Name=ALSA
 Exec=pd-l2ork -k12 -noautopatch -rt -alsa -audiobuf 20 %U
 TargetEnvironment=Unity
 
-[JACK Shortcut Group]
+[Desktop Action JACK]
 Name=JACK
 Exec=pd-l2ork -k12 -noautopatch -rt -jack -audiobuf 20 %U
 TargetEnvironment=Unity
 
-[ForceQuit Shortcut Group]
+[Desktop Action ForceQuit]
 Name=Force Quit Pd-L2Ork
 Exec=/usr/bin/killall pd-l2ork pd-gui
 TargetEnvironment=Unity
diff --git a/packages/linux_make/pd-l2ork.desktop b/packages/linux_make/pd-l2ork.desktop
index 71c97f78f..5f6528cea 100755
--- a/packages/linux_make/pd-l2ork.desktop
+++ b/packages/linux_make/pd-l2ork.desktop
@@ -5,21 +5,21 @@ Exec=pd-l2ork -rt -audiobuf 20 %U
 Terminal=false
 Type=Application
 Icon=pd-l2ork.xpm
-X-Ayatana-Desktop-Shortcuts=ALSA;JACK;ForceQuit
+Actions=ALSA;JACK;ForceQuit
 Categories=AudioVideo;Audio;
 MimeType=application/x-puredata;
 
-[ALSA Shortcut Group]
+[Desktop Action ALSA]
 Name=ALSA
 Exec=pd-l2ork -rt -alsa -audiobuf 20 %U
 TargetEnvironment=Unity
 
-[JACK Shortcut Group]
+[Desktop Action JACK]
 Name=JACK
 Exec=pd-l2ork -rt -jack -audiobuf 20 %U
 TargetEnvironment=Unity
 
-[ForceQuit Shortcut Group]
+[Desktop Action ForceQuit]
 Name=Force Quit Pd-L2Ork
 Exec=/usr/bin/killall pd-l2ork pd-gui
 TargetEnvironment=Unity
-- 
GitLab