From 9e529f8e88fdce04118a5bd7eb3b53369ea72421 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 18 Aug 2020 23:52:33 +0200 Subject: WIP: FIX p2p --- src/Text.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Text.cpp') diff --git a/src/Text.cpp b/src/Text.cpp index 6e3aac9..3c26b5a 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -779,9 +779,8 @@ namespace dchat if(event.x >= pos.x && event.x <= pos.x + previewWidth && event.y >= pos.y && event.y <= pos.y + imageHeight) { // TODO: Implement for other platforms than linux - std::string cmd = "xdg-open '"; - cmd += escapeCommand(utf8Str); - cmd += "'"; + std::string cmd = "xdg-open "; + cmd += escapeCommandArg(utf8Str); printf("Clicked on web page preview, opening web page by running command: %s\n", cmd.c_str()); system(cmd.c_str()); return; -- cgit v1.2.3