You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/measuring/measuring-gui-applications.md
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ weight: 839
7
7
toc: true
8
8
---
9
9
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.
11
13
12
14
### Linux
13
15
@@ -91,5 +93,30 @@ Theoretically macOS should be possible if you install *X Server* on your system.
91
93
92
94
Let us know if you try it out and it works!
93
95
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
+
94
121
### Help / Debugging
95
122
If you run into any errors see the [Debugging →]({{< relref "debugging" >}}) page.
0 commit comments