mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 12:48:04 -06:00
committed by
GitHub
parent
45babc336d
commit
33aaa867b5
@@ -176,9 +176,7 @@ void Utils::Gui::openFolderSelect(const Path &path)
|
||||
const int lineMaxLength = 64;
|
||||
|
||||
QProcess proc;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
|
||||
proc.setUnixProcessParameters(QProcess::UnixProcessFlag::CloseFileDescriptors);
|
||||
#endif
|
||||
proc.start(u"xdg-mime"_s, {u"query"_s, u"default"_s, u"inode/directory"_s});
|
||||
proc.waitForFinished();
|
||||
const auto output = QString::fromLocal8Bit(proc.readLine(lineMaxLength).simplified());
|
||||
|
||||
Reference in New Issue
Block a user