summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Slagle2015-10-19 22:57:52 -0700
committerKevin Slagle2015-10-19 22:57:52 -0700
commit5ebd40305174b5ca67947a10aea6b310931ea855 (patch)
treee2085f54beefb5857ce09325b46d0282814d1bc3
parent48cc5c348bbe0a0b9fc8c4bac5cc8339e4b4304f (diff)
downloadaur-5ebd40305174b5ca67947a10aea6b310931ea855.tar.gz
fixed .desktop file
-rw-r--r--PKGBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cc21f5e2ca65..302dc02e4df8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -58,8 +58,11 @@ package() {
cd ${pkgdir}/opt/Mathematica/SystemFiles/Installation
+ sed -Ei 's|^(\s*TryExec=).*|\1/usr/bin/Mathematica|g' wolfram-mathematica10.desktop
+ sed -Ei 's|^(\s*Exec=).*|\1/usr/bin/Mathematica %F|g' wolfram-mathematica10.desktop
cp wolfram-mathematica10.desktop ${pkgdir}/usr/share/applications/wolfram-mathematica10.desktop
- echo ' Categories=Science;Math;NumericalAnalysis;DataVisualization;' >> ${pkgdir}/usr/share/applications/wolfram-mathematica10.desktop
+ echo -e '\t\tCategories=Science;Math;NumericalAnalysis;DataVisualization;' >> ${pkgdir}/usr/share/applications/wolfram-mathematica10.desktop
+
cp wolfram-all.directory ${pkgdir}/usr/share/desktop-directories/
cp *.xml ${pkgdir}/usr/share/mime/packages/