Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b8c700 commit 44b67fcCopy full SHA for 44b67fc
src/cmd/container.js
@@ -48,9 +48,11 @@ module.exports = class ContainerCommands extends CLICommandBase {
48
49
// provide access to the X server to Docker
50
try {
51
- await execa('xhost', ['+local:root']);
52
- await execa('xhost', ['+local:particle']);
53
- await execa('xhost', ['+SI:localuser:root']);
+ if (os.platform() === 'linux') {
+ await execa('xhost', ['+local:root']);
+ await execa('xhost', ['+local:particle']);
54
+ await execa('xhost', ['+SI:localuser:root']);
55
+ }
56
} catch {
57
// ignore errors on non-Linux systems
58
}
0 commit comments