Opened 4 years ago

Last modified 4 years ago

#22599 new enhancement

Freedesktop desktop-entry-spec

Reported by: pipedream Owned by:
Priority: minor Milestone: sage-wishlist
Component: notebook Keywords: freedesktop desktop-entry desktop
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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

Attachments (2)

sagemath.desktop (266 bytes) - added by pipedream 4 years ago.
Freedesktop desktop-entry-spec for sagemath
sage_logo.svg (2.1 KB) - added by chapoton 4 years ago.
svg icon

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by pipedream

Freedesktop desktop-entry-spec for sagemath

comment:1 follow-up: Changed 4 years ago by fbissey

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.

comment:2 in reply to: ↑ 1 Changed 4 years ago by tmonteil

Replying to fbissey:

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

comment:3 Changed 4 years ago by pipedream

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.

comment:4 Changed 4 years ago by pipedream

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

comment:5 Changed 4 years ago by pipedream

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.

comment:6 Changed 4 years ago by fbissey

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

Changed 4 years ago by chapoton

svg icon

comment:7 Changed 4 years ago by aapitzsch

This is a duplicate of #10989.

Note: See TracTickets for help on using tickets.