From 903f2d3d760f6cc254fcb45989ea8f21337764f6 Mon Sep 17 00:00:00 2001 From: Amr Ibrahim <45657128+Amr-Ibra@users.noreply.github.com> Date: Mon, 2 Aug 2021 16:45:08 +0200 Subject: [PATCH] Enhancements to the desktop entry (#6099) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- jupyter-notebook.desktop | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jupyter-notebook.desktop b/jupyter-notebook.desktop index 97a27743ec..095d5ac65b 100644 --- a/jupyter-notebook.desktop +++ b/jupyter-notebook.desktop @@ -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;