| 145 | **Atom**\\ |
| 146 | If you want to avoid to manually switch to another stage or load extra modules, you can follow this example.\\ |
| 147 | Thanks goes to Johannes Hörmann. |
| 148 | |
| 149 | A suitable xpra wrapper script can do the extra work before you program starts: |
| 150 | {{{ #!sh |
| 151 | #!/bin/bash -x |
| 152 | |
| 153 | module --force purge |
| 154 | module load Stages/2018a GCCcore/.5.5.0 Xpra/1.0.11-Python-2.7.14 |
| 155 | module load Atom/1.25.0 |
| 156 | |
| 157 | exec $@ |
| 158 | }}} |
| 159 | |
| 160 | * Add the executable bit (chmod +x xpra_wrapper) |
| 161 | * Add the line {{{exec-wrapper = /absolute/path/to/xpra_wrapper}}} to ~/.xpra/xpra.conf |
| 162 | * if you have used xpra before, this file should already exist |
| 163 | |
| 164 | Now you can bring up a remote Atom with this single command |
| 165 | {{{ #!sh |
| 166 | client> xpra start ssh:<USERID>@jurecavis01.fz-juelich.de --start-child="atom -w" --min-quality=90 --dpi=96 |
| 167 | }}} |
| 168 | In order not to detach Atom from the calling process it needs to be started with {{{-w}}} option -- otherwise the xpra_wrapper would return immediately after initiating Atom and the xpra server shuts down. |
| 169 | |