sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.31k stars 449 forks source link

Freedesktop desktop-entry-spec #22599

Open pipedream opened 7 years ago

pipedream commented 7 years ago

Can we add a freedesktop desktop-entry file, something like attached.

Component: notebook

Keywords: freedesktop desktop-entry desktop

Issue created by migration from https://trac.sagemath.org/ticket/22599

pipedream commented 7 years ago

Freedesktop desktop-entry-spec for sagemath

kiwifb commented 7 years ago
comment:1

Attachment: sagemath.desktop.gz

I have one as well in sage-on-gentoo, I wonder if the other have one:

[Desktop Entry]
        Name=Sage Shell
        Type=Application
        Comment=Math software for abstract and numerical computations
        Exec=sage
        TryExec=sage
        Icon=sage
        Categories=Education;Science;Math;
        Terminal=true

Because yours starts the notebook, I am not sure it actually needs a terminal.

edd8e884-f507-429a-b577-5d554626c0fe commented 7 years ago
comment:2

Replying to @kiwifb:

I have one as well in sage-on-gentoo, I wonder if the other have one:

[Desktop Entry]
      Name=Sage Shell
      Type=Application
      Comment=Math software for abstract and numerical computations
      Exec=sage
      TryExec=sage
      Icon=sage
      Categories=Education;Science;Math;
      Terminal=true

Because yours starts the notebook, I am not sure it actually needs a terminal.

Yup, i have one as well on Sage Debian Live :) Actually, one for the command line

[Desktop Entry]
Name=Sage console
Name[fr]=Console Sage
Name[en]=Sage console
Comment=Scientific Computing using Sage
Comment[fr]=Calcul scientifique avec Sage
Comment[en]=Scientific Computing using Sage
Exec=x-terminal-emulator -T "SAGE" -e "sage"
Icon=/opt/sagemath/files/sage-console.icon.svg
Terminal=false
Type=Application
Categories=Education;Math;Science;
StartupNotify=true

one for the Sage notebook (we need to launch it from a terminal since it asks for a password the first time):

[Desktop Entry]
Name=Sage notebook
Name[fr]=Notebook Sage
Name[en]=Sage notebook
Comment=Scientific Computing using Sage
Comment[fr]=Calcul scientifique avec Sage
Comment[en]=Scientific Computing using Sage
Exec=x-terminal-emulator -T "SAGE NOTEBOOK LAUNCHER" -e "sage -notebook=sagenb"
Icon=/opt/sagemath/files/sage-notebook.icon.svg
Terminal=false
Type=Application
Categories=Education;Math;Science;
StartupNotify=true

and one for the jupyter notebook:

[Desktop Entry]
Name=Jupyter notebook with Sage
Name[fr]=Notebook Jupyter avec Sage
Name[en]=Jupyter notebook with Sage
Comment=Scientific Computing using Jupyter notebook and Sage
Comment[fr]=Calcul scientifique avec le notebook Jupyter et Sage
Comment[en]=Scientific Computing using Jupyter notebook and Sage
Exec=x-terminal-emulator -T "JUPYTER NOTEBOOK LAUNCHER" -e "sage -notebook=jupyter --notebook-dir='~'"
Icon=/opt/sagemath/files/sage-jupyter.icon.svg
Terminal=false
Type=Application
Categories=Education;Math;Science;
StartupNotify=true
pipedream commented 7 years ago
comment:3

Sagemath notebook can take quite long to open, so terminal is useful for seeing progress.

Also I guess students are more likely to leave stray processes around on lab machines (they tend to log out with all their windows still open).

However, I have tested with Terminal=false and that works fine takes couple of seconds to open on Intel i5-3 CPU with 16G RAM.

pipedream commented 7 years ago
comment:4

Also the first time you launch sage notebook you need to enter a password in the terminal.

pipedream commented 7 years ago
comment:5

I just tested and closing a browser tab with sage notebook does not stop the sage notebook process. I think this is good enough reason to keep the Terminal=true.

kiwifb commented 7 years ago
comment:6

Mine is quite old and hasn't been touched in years. A refresh won't hurt.

fchapoton commented 7 years ago

Attachment: sage_logo.svg.gz

svg icon

a-andre commented 7 years ago
comment:7

This is a duplicate of #10989.