From e6c07d27cd0db4ee24c4e025745048c186608dd7 Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 21 Sep 2025 18:08:06 +0100 Subject: [PATCH] Avoid sometimes error when running gnome-terminal --- Examples/UICatalog/Properties/launchSettings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/UICatalog/Properties/launchSettings.json b/Examples/UICatalog/Properties/launchSettings.json index a20ddaf93..8bdb4f7e0 100644 --- a/Examples/UICatalog/Properties/launchSettings.json +++ b/Examples/UICatalog/Properties/launchSettings.json @@ -63,13 +63,13 @@ "WSL-Gnome: UICatalog --driver v2": { "commandName": "Executable", "executablePath": "wsl", - "commandLineArgs": "bash -c 'while [ ! -e \"$XDG_RUNTIME_DIR/bus\" ]; do sleep 0.1; done; gnome-terminal --wait -- bash -l -c \"dotnet UICatalog.dll --driver v2; exec bash\"'", + "commandLineArgs": "bash -c 'dbus-run-session -- gnome-terminal --wait -- bash -l -c \"dotnet UICatalog.dll --driver v2; exec bash\"'", "distributionName": "" }, "WSL-Gnome: UICatalog --driver v2net": { "commandName": "Executable", "executablePath": "wsl", - "commandLineArgs": "bash -c 'while [ ! -e \"$XDG_RUNTIME_DIR/bus\" ]; do sleep 0.1; done; gnome-terminal --wait -- bash -l -c \"dotnet UICatalog.dll --driver v2net; exec bash\"'", + "commandLineArgs": "bash -c 'dbus-run-session -- gnome-terminal --wait -- bash -l -c \"dotnet UICatalog.dll --driver v2net; exec bash\"'", "distributionName": "" }, "Benchmark All": {