Adopted from NixOS pkgs/development/libraries/kde-frameworks/kio/samba-search-path.patch =================================================================== --- kio-5.17.0.orig/src/core/ksambashare.cpp +++ kio-5.17.0/src/core/ksambashare.cpp @@ -67,13 +67,18 @@ KSambaSharePrivate::~KSambaSharePrivate( bool KSambaSharePrivate::isSambaInstalled() { - if (QFile::exists(QStringLiteral("/usr/sbin/smbd")) - || QFile::exists(QStringLiteral("/usr/local/sbin/smbd"))) { - return true; + const QByteArray pathEnv = qgetenv("PATH"); + if (!pathEnv.isEmpty()) { + QLatin1Char pathSep(':'); + QStringList paths = QFile::decodeName(pathEnv).split(pathSep, QString::SkipEmptyParts); + for (QStringList::iterator it = paths.begin(); it != paths.end(); ++it) { + it->append(QStringLiteral("/smbd")); + if (QFile::exists(*it)) { + return true; + } + } } - //qDebug() << "Samba is not installed!"; - return false; } ref='/guix/'>summaryrefslogtreecommitdiff
path: root/README
AgeCommit message (Expand)Author
2021-05-20The #guix channel is hosted by Libera Chat....Tobias Geerinckx-Rice
2020-10-23doc: Update README....Maxim Cournoyer
2020-10-22README: Refer to the manual for building from Git....Maxim Cournoyer
2020-06-02doc: Update README to refer to the manual....Ludovic Courtès
2019-11-09doc: Mention value /var to localstatedir option....zimoun
2019-09-04doc: Update 'README'....Ludovic Courtès
2019-01-09build: Require Guile 2.2....Ludovic Courtès
2018-12-02Make Guile-JSON a required dependency....Eric Bavier
2018-11-23Update Guile-SQLite3 URL everywhere....Ludovic Courtès
2018-09-04Switch to Guile-Gcrypt....Ludovic Courtès
2018-06-27doc: Specify Guile-SQLite3 minimum version....Ludovic Courtès
2018-06-14build: Require Guile-SQLite3....Ludovic Courtès
2018-02-26build: Require Guile >= 2.0.13....Ludovic Courtès
2018-01-07doc: Mark zlib as mandatory, libbz2 as optional....Ludovic Courtès
2018-01-01doc: Update requirements in 'README'....Mathieu Lirzin
2017-09-25README: Replace http:// with https:// where applicable.Marius Bakke