Skip to content

Commit 903f2d3

Browse files
authored
Enhancements to the desktop entry (#6099)
- 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)
1 parent 94ac6d7 commit 903f2d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jupyter-notebook.desktop

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[Desktop Entry]
22
Name=Jupyter Notebook
33
Comment=Run Jupyter Notebook
4-
Exec=jupyter-notebook
4+
Exec=jupyter-notebook %f
55
Terminal=true
66
Type=Application
77
Icon=notebook
88
StartupNotify=true
99
MimeType=application/x-ipynb+json;
10-
Categories=Development;Education
10+
Categories=Development;Education;
11+
Keywords=python;

0 commit comments

Comments
 (0)