Changeset View
Changeset View
Standalone View
Standalone View
krusader/krservices.cpp
Show All 39 Lines | |||||
40 | { | 40 | { | ||
41 | KConfigGroup group(krConfig, "Dependencies"); | 41 | KConfigGroup group(krConfig, "Dependencies"); | ||
42 | if (QFile(group.readEntry(cmdName, QString())).exists()) | 42 | if (QFile(group.readEntry(cmdName, QString())).exists()) | ||
43 | return true; | 43 | return true; | ||
44 | 44 | | |||
45 | return !QStandardPaths::findExecutable(cmdName).isEmpty(); | 45 | return !QStandardPaths::findExecutable(cmdName).isEmpty(); | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | static const QStringList bin_suffixes = QStringList() | | |||
49 | #ifdef Q_WS_WIN | | |||
50 | << ".cmd" << ".exe" << ".bat" | | |||
51 | #else | | |||
52 | << "" | | |||
53 | #endif | | |||
54 | ; | | |||
55 | | ||||
56 | QString KrServices::fullPathName(QString name, QString confName) | 48 | QString KrServices::fullPathName(QString name, QString confName) | ||
57 | { | 49 | { | ||
58 | QString supposedName; | 50 | QString supposedName; | ||
59 | 51 | | |||
60 | if (confName.isNull()) | 52 | if (confName.isNull()) | ||
61 | confName = name; | 53 | confName = name; | ||
62 | 54 | | |||
63 | KConfigGroup config(krConfig, "Dependencies"); | 55 | KConfigGroup config(krConfig, "Dependencies"); | ||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |