mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-25 23:45:58 +01:00
core: fix inShellPath, Permission denied (#213)
This commit is contained in:
parent
1f228ba2f1
commit
af7c87a32f
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ bool inShellPath(const std::string& exec) {
|
||||||
if (nextBegin < pathString.size())
|
if (nextBegin < pathString.size())
|
||||||
paths.push_back(pathString.substr(nextBegin, pathString.size() - nextBegin));
|
paths.push_back(pathString.substr(nextBegin, pathString.size() - nextBegin));
|
||||||
|
|
||||||
return std::ranges::any_of(paths, [&exec](std::string& path) { return std::filesystem::exists(path + "/" + exec); });
|
return std::ranges::any_of(paths, [&exec](std::string& path) { return access((path + "/" + exec).c_str(), X_OK) == 0; });
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendEmptyDbusMethodReply(sdbus::MethodCall& call, u_int32_t responseCode) {
|
void sendEmptyDbusMethodReply(sdbus::MethodCall& call, u_int32_t responseCode) {
|
||||||
|
|
Loading…
Reference in a new issue