Skip to content
Snippets Groups Projects
Commit 6ab2b7f2 authored by Jens Henrik Goebbert's avatar Jens Henrik Goebbert
Browse files

how to add menu entries

parent 3b15715e
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags:
![jsc-logo.jpg](attachment:67258d94-84e6-4a0c-ae8f-c74332ec082e.jpg)
Author: [Jens Henrik Göbbert](mailto:j.goebbert@fz-juelich.de)
------------------------------------
%% Cell type:markdown id: tags:
# Add Xpra Start-Menu Entry
![grafik.png](attachment:0ad4a062-e6d0-4a0e-8bf5-54fee1be50f6.png)
Remote Desktop refers to the remote access to the desktop of a computer. Application programs are executed on one computer (server) and displayed and operated on another computer (client).
You can start your **Remote Desktop** from the launch panel of Jupyter-JSC by clicking on the **Xpra icon**.
X Persistent Remote Applications (Xpra) is a Remote Desktop tool which runs X clients on a remote host and directs their display to the local machine without losing any state.
It differs from standard "X forwarding" in that it allows disconnection and reconnection without disrupting the forwarded application.
On the Xpra remote desktop you have a **Start Menu** in the upper left corner.
If you want to add your **own menu entries** there, then follow the instructions here.
-------------------------
%% Cell type:markdown id: tags:
## Create an application desktop file
%% Cell type:markdown id: tags:
![grafik.png](attachment:317f9f6d-03b5-4dce-a65c-6f52a35c31dc.png)
%% Cell type:code id: tags:
``` bash
# create applications directory (if not existent)
USER_APPLICATION_DIR=${HOME}/.local/share/applications
mkdir -p ${USER_APPLICATION_DIR}
```
%% Cell type:markdown id: tags:
Lets create an icon for `ExampleTool` which starts from `$HOME/bin/exampletool.sh`
%% Cell type:markdown id: tags:
<div class="alert alert-block alert-info">
<b>ATTENTION:</b>
The standard JSC start menu in an Xpra session through Jupyter-JSC adds desktop entries with the **Categories=UserApplications** to its own submenu
</div>
%% Cell type:code id: tags:
``` bash
# create desktop file
{ cat > ${USER_APPLICATION_DIR}/ExampleTool.desktop; } << 'EOF'
[Desktop Entry]
Name=ExampleTool
GenericName=ExampleTool
Comment=my great example tool
Exec=xterm -hold -e '$HOME/bin/exampletool.sh'
Terminal=false
Type=Application
Encoding=UTF-8
Icon=application
Categories=UserApplications;
Keywords=userapplication;
X-Desktop-File-Install-Version=0.23
EOF
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment