summaryrefslogtreecommitdiffstats
path: root/draksnapshot-applet
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-04-03 09:04:37 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-04-03 09:04:37 +0000
commit20c63d0c2e3d909fb33f9acf0bd77f34aff855ea (patch)
treeaf249fc72ac3571589629d20f607281117eb1e5f /draksnapshot-applet
parent9bdc08d12fc3768961f5f887d37fc12ceac429ca (diff)
downloaddraksnapshot-20c63d0c2e3d909fb33f9acf0bd77f34aff855ea.tar
draksnapshot-20c63d0c2e3d909fb33f9acf0bd77f34aff855ea.tar.gz
draksnapshot-20c63d0c2e3d909fb33f9acf0bd77f34aff855ea.tar.bz2
draksnapshot-20c63d0c2e3d909fb33f9acf0bd77f34aff855ea.tar.xz
draksnapshot-20c63d0c2e3d909fb33f9acf0bd77f34aff855ea.zip
do not wake up on CD insertion (#39748)
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@241894 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-applet')
-rwxr-xr-xdraksnapshot-applet4
1 files changed, 3 insertions, 1 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index 3f884b5..dfd899c 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -88,7 +88,9 @@ $con->add_filter(sub {
my $bool;
eval {
my $device = $hal->get_object(($msg->get_args_list)[0], "$hal_dn.Device");
- $bool = $device->QueryCapability('block') && $device->GetProperty('block.is_volume');
+ $bool =
+ $device->QueryCapability('volume') && !$device->GetProperty('volume.is_disc') &&
+ $device->QueryCapability('block') && $device->GetProperty('block.is_volume');
};
if ($bool) {
my $time = time();