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/about/'>aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/avahi.scm
AgeCommit message (Expand)Author
2020-01-19gnu: Use HTTPS for avahi.org everywhere....Tobias Geerinckx-Rice
2019-01-16services: avahi: Deprecate the 'avahi-service' procedure....Ludovic Courtès
2018-02-19services: avahi: Publish '_workstation._tcp' by default....Ludovic Courtès
2018-02-19services: avahi: Read PID file from /run....Ludovic Courtès
2018-02-15gnu: nss-mdns: Update to 0.12.0....Ludovic Courtès
2018-02-09services: avahi: Default to nss-mdns 0.10....Ludovic Courtès
2017-11-05services: Add 'description' fields....Ludovic Courtès