diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:52:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-19 00:06:08 +0200 |
commit | 9e529f8e88fdce04118a5bd7eb3b53369ea72421 (patch) | |
tree | 37f097570ba58c162808792adfd55e33a21291a7 /src/Text.cpp | |
parent | 16f091d587d6e16cecb468e041e4a2f138901be0 (diff) |
WIP: FIX p2p
Diffstat (limited to 'src/Text.cpp')
-rw-r--r-- | src/Text.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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; |