Merge pull request #696 from lala-lala-lori/dev1

support for pde:// browser protocol (LINUX)
This commit is contained in:
Ben Fry
2023-07-26 06:25:01 -04:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -3,10 +3,10 @@ Type=Application
Name=Processing
GenericName=Processing
Comment=Open-source software prototyping platform
Exec=<BINARY_LOCATION>
Exec=<BINARY_LOCATION> %u
Icon=<ICON_NAME>
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

View File

@@ -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"