summaryrefslogtreecommitdiff
path: root/community/sage-mathematics/sage-mathematics.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/sage-mathematics/sage-mathematics.install')
-rw-r--r--community/sage-mathematics/sage-mathematics.install2
1 files changed, 2 insertions, 0 deletions
diff --git a/community/sage-mathematics/sage-mathematics.install b/community/sage-mathematics/sage-mathematics.install
index 6caa5299e..ab5dae235 100644
--- a/community/sage-mathematics/sage-mathematics.install
+++ b/community/sage-mathematics/sage-mathematics.install
@@ -1,5 +1,6 @@
post_install() {
cd /opt/sage
+ update-desktop-database -q
# set HOME because when sage updates its sage_root (after being moved) it will write files to ~/.sage with root ownership
# the files it writes to ~/.sage can be safely ignored
@@ -44,6 +45,7 @@ post_upgrade() {
post_remove() {
# Update LaTeX db to remove SageTeX entries
+ update-desktop-database -q
if [ -f /usr/bin/texhash ]; then
/usr/bin/texhash /usr/share/texmf
fi