diff options
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; |