Commit 79012b16 authored by AlmAck's avatar AlmAck
Browse files

sage-mathematics sync files

parent edae2289
......@@ -2,10 +2,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
HOME=/tmp ./sage -c
# add sagemath user for the daemon
useradd -r -c 'Sage daemon' -d /opt/sage -s /bin/false sagemath
......@@ -41,6 +37,8 @@ echo '
post_upgrade() {
post_install $1
echo "There is now a user session unit included to run a sage notebook as your user."
echo "The wiki includes a guide on starting systemd user sessions"
}
post_remove() {
......
......@@ -6,7 +6,7 @@ Comment[en_US]=SAGE NOTEBOOK
Exec=/opt/sage/sage -notebook
GenericName=
GenericName[de]=
Icon=/opt/sage/devel/ext-main/notebook/images/sageicon.png
Icon=/usr/share/pixmaps/sage-notebook.png
MimeType=
Name[de]=SAGE
StartupNotify=true
......
[Unit]
Description=A free open-source mathematics software system
[Service]
ExecStart=/opt/sage/sage -n
[Install]
WantedBy=default.target
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment