Skip to content

Commit

Permalink
try process::start instead of shellexecute
Browse files Browse the repository at this point in the history
  • Loading branch information
aloneguid committed Sep 7, 2023
1 parent efad699 commit be73ece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bt/app/browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <filesystem>
#include <algorithm>
#include "win32/shell.h"
#include "win32/process.h"
#include "str.h"
#include "../globals.h"
#include <fmt/core.h>
Expand Down Expand Up @@ -232,7 +233,8 @@ namespace bt {
arg += user_arg;
}

win32::shell::exec(b->open_cmd, arg);
//win32::shell::exec(b->open_cmd, arg);
win32::process::start(b->open_cmd + " " + arg);
}

bool browser_instance::is_match(const std::string& url, match_rule& mr) const {
Expand Down
2 changes: 1 addition & 1 deletion common

0 comments on commit be73ece

Please sign in to comment.