[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    mediamanager, automount_enabled_hint, and global no-automount
From:       Don Mahurin <dm () openright ! org>
Date:       2006-07-17 17:29:36
Message-ID: 44BBC900.8040101 () openright ! org
[Download RAW message or body]

It seems that there is no [good] way to turn off automount globally or
by hal policy, when using the kde media manager.

In mediamanager/halbackend.cpp:

The "automount" could be supported globally, so instead of:

config.setGroup(drive_udi);
bool value = config.readBoolEntry("automount", false);
config.setGroup(name);


, there could be something like:

config.setGroup("Global");
bool value = config.readBoolEntry("automount", false);
config.setGroup(drive_udi);
value = config.readBoolEntry("automount", value);
config.setGroup(name);


Also, automount_enabled_hint should be checked along with all the other
hal conditions to turn off automount:


    if (libhal_device_get_property_bool(m_halContext, name.latin1(), 
"volume.disc.is_blank", NULL)
/*add*/        || (!libhal_device_get_property_bool(m_halContext, 
name.latin1(), "storage.automount_enabled_hint", NULL))
        || libhal_device_get_property_bool(m_halContext, name.latin1(), 
"volume.disc.is_vcd", NULL)
        || libhal_device_get_property_bool(m_halContext, name.latin1(), 
"volume.disc.is_svcd", NULL)
        || libhal_device_get_property_bool(m_halContext, name.latin1(), 
"volume.disc.is_videodvd", NULL)
        || libhal_device_get_property_bool(m_halContext, name.latin1(), 
"volume.disc.has_audio", NULL))
        value = false;


-Don Mahurin



 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic