Skip to content

Commit ff9c6ab

Browse files
committed
Added GUI instructions for unattended cluster mode
1 parent 60dfdf9 commit ff9c6ab

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

content/en/docs/measuring/measuring-gui-applications.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ weight: 839
77
toc: true
88
---
99

10-
GMT can also measure GUI applications. We only support Linux atm but will update this page once further OS are supported.
10+
GMT can also measure GUI applications that need an active Window Manager (X11 / Wayland etc).
11+
12+
We only support Linux atm but will update this page once further OS are supported.
1113

1214
### Linux
1315

@@ -91,5 +93,30 @@ Theoretically macOS should be possible if you install *X Server* on your system.
9193

9294
Let us know if you try it out and it works!
9395

96+
### Automating for cluster
97+
98+
If you are running GMT unattended in cluster mode you must ensure two things:
99+
- The user that the GMT runs with must be automatically also logged into a GUI session. This typically happens in the user settings of the desktop (for instance Gnome).
100+
- Futhermore the `xhost +local:docker` must be set also in the Desktop. In an unattended mode this must happen with files that are loaded via autostart.
101+
102+
#### X11 autostart file
103+
Add `xhost +local:docker` to `~/.xprofile`
104+
105+
Example: `$ xhost +" >> ~/.xprofile`
106+
107+
#### Wayland autostart file
108+
Create a file `~/.config/autostart/xhost-docker.desktop`
109+
110+
Content:
111+
```config
112+
[Desktop Entry]
113+
Type=Application
114+
Exec=xhost +local:docker
115+
Hidden=false
116+
NoDisplay=false
117+
X-GNOME-Autostart-enabled=true
118+
Name=Allow Docker X11 / Wayland
119+
```
120+
94121
### Help / Debugging
95122
If you run into any errors see the [Debugging →]({{< relref "debugging" >}}) page.

0 commit comments

Comments
 (0)