Skip to content

Commit

Permalink
Enhancements to the desktop entry (#6099)
Browse files Browse the repository at this point in the history
- Add the argument %f to the Exec key so that a notebook file can be directly opened from the file manager by right-click → Open With Jupyter Notebook, or by double-clicking (https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html)
- Add the Keyword key so that the Jupyter Notebook application can be searched with a keyword "python", e.g. from GNOME Shell (look for the Keywords key in the table https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html)
- Add a semicolon ";" to the end of the strings in the Categories key (look at the examples here https://specifications.freedesktop.org/menu-spec/latest/ar01s03.html)
  • Loading branch information
Amr-Ibra authored Aug 2, 2021
1 parent 94ac6d7 commit 903f2d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jupyter-notebook.desktop
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[Desktop Entry]
Name=Jupyter Notebook
Comment=Run Jupyter Notebook
Exec=jupyter-notebook
Exec=jupyter-notebook %f
Terminal=true
Type=Application
Icon=notebook
StartupNotify=true
MimeType=application/x-ipynb+json;
Categories=Development;Education
Categories=Development;Education;
Keywords=python;

0 comments on commit 903f2d3

Please sign in to comment.