Add support for Thunar file manager

PR #21531.

Co-authored-by: yalikes <algebnaly@qq.com>
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
algebnaly 2024-10-12 14:41:05 +08:00 committed by GitHub
commit 6418033cc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -203,6 +203,10 @@ void Utils::Gui::openFolderSelect(const Path &path)
{
proc.startDetached(u"konqueror"_s, {u"--select"_s, path.toString()});
}
else if (output == u"thunar.desktop")
{
proc.startDetached(u"thunar"_s, {path.toString()});
}
else
{
// "caja" manager can't pinpoint the file, see: https://github.com/qbittorrent/qBittorrent/issues/5003