mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 15:27:13 +08:00
sage-mathematics sync files
This commit is contained in:
parent
edae228910
commit
79012b1610
@ -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
|
8
sage-mathematics/sage.service
Normal file
8
sage-mathematics/sage.service
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=A free open-source mathematics software system
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/sage/sage -n
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in New Issue
Block a user