From d6708402a4e5892af2436d03d3e98b45b19b0769 Mon Sep 17 00:00:00 2001 From: lala-lala-lori Date: Thu, 6 Apr 2023 21:32:57 +0530 Subject: [PATCH] support for pde:// --- build/linux/desktop.template | 4 ++-- build/linux/install.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build/linux/desktop.template b/build/linux/desktop.template index 4a658f6b29..a3e4373c0b 100644 --- a/build/linux/desktop.template +++ b/build/linux/desktop.template @@ -3,10 +3,10 @@ Type=Application Name=Processing GenericName=Processing Comment=Open-source software prototyping platform -Exec= +Exec= %u Icon= Terminal=false Categories=Development;IDE;Programming; -MimeType=text/x-processing; +MimeType=text/x-processing;x-scheme-handler/pde; Keywords=sketching;software;animation;programming;coding; StartupWMClass=processing-app-ui-Splash diff --git a/build/linux/install.sh b/build/linux/install.sh index bbe488f890..d78f06e8d1 100755 --- a/build/linux/install.sh +++ b/build/linux/install.sh @@ -64,6 +64,9 @@ xdg_install_f() { # Make the Processing Development Environment the default app for *.pde files xdg-mime default ${RESOURCE_NAME}.desktop text/x-processing + # Make the Processing Development Environment the default app for pde scheme + xdg-mime default ${RESOURCE_NAME}.desktop x-scheme-handler/pde + # Clean up rm "${TMP_DIR}/${RESOURCE_NAME}.desktop" rmdir "$TMP_DIR"