Bug
Для Ъ: не монтирует автоматически незнакомые устройства
Компонент: kde-runtime (Mandriva - kdebase4-runtime, Fedora - kdebase-runtime) (проверял в 4.6.5, но исправляемый файл минимум в 4.6.2 и 4.7.2 тот же самый, так что должно работать во всех 4.[67].*)
Патч:
--- ./solid-device-automounter/lib/AutomounterSettings.cpp.old 2011-02-26 02:54:12.000000000 +0500
+++ ./solid-device-automounter/lib/AutomounterSettings.cpp 2011-10-11 16:57:20.000000000 +0600
@@ -63,7 +63,7 @@
*/
bool known = deviceIsKnown(udi);
bool enabled = automountEnabled();
- bool automountKnown = !automountUnknownDevices();
+ bool automountUnknown = automountUnknownDevices();
bool deviceAutomount = deviceAutomountIsForced(udi, type);
bool lastSeenMounted = deviceSettings(udi).readEntry("LastSeenMounted", false);
bool typeCondition = false;
@@ -75,12 +75,12 @@
typeCondition = automountOnPlugin();
break;
}
- bool shouldAutomount = deviceAutomount || (enabled && typeCondition && ((automountKnown && known) || lastSeenMounted));
+ bool shouldAutomount = deviceAutomount || (enabled && typeCondition && (automountUnknown || known || lastSeenMounted));
kDebug() << "Processing" << udi;
kDebug() << "type:" << type;
kDebug() << "typeCondition:" << typeCondition;
- kDebug() << "automountKnownDevices:" << automountKnown;
+ kDebug() << "automountUnknownDevices:" << automountUnknown;
kDebug() << "deviceIsKnown:" << known;
kDebug() << "AutomountEnabled:" << enabled;
kDebug() << "Automount:" << deviceAutomount;