sage-mathematics sync files

This commit is contained in:
AlmAck 2014-10-08 19:35:50 +00:00
parent edae228910
commit 79012b1610
3 changed files with 11 additions and 5 deletions

View File

@ -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() {

View File

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

View File

@ -0,0 +1,8 @@
[Unit]
Description=A free open-source mathematics software system
[Service]
ExecStart=/opt/sage/sage -n
[Install]
WantedBy=default.target