summaryrefslogtreecommitdiff
path: root/Assistant/Threads/MountWatcher.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-01-10 16:08:40 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-01-10 16:08:40 -0400
commita95492e5b762f8cb4a9f2e38c3d918dfbbe9e9e7 (patch)
treea0906004de94b86efaa6c1a8218ab4a5a6f1b4a9 /Assistant/Threads/MountWatcher.hs
parenta2fadc2222dd242fca3541239ff9448a6743711f (diff)
seems I got the name wrong
Diffstat (limited to 'Assistant/Threads/MountWatcher.hs')
-rw-r--r--Assistant/Threads/MountWatcher.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Assistant/Threads/MountWatcher.hs b/Assistant/Threads/MountWatcher.hs
index 2d80c5888..fd0b9c2f9 100644
--- a/Assistant/Threads/MountWatcher.hs
+++ b/Assistant/Threads/MountWatcher.hs
@@ -98,7 +98,7 @@ checkMountMonitor client = do
where
startableservices = [gvfs, gvfsgdu]
usableservices = startableservices ++ [kde]
- gvfs = "org.gtk.Private.RemoteVolumeMonitor"
+ gvfs = "org.gtk.Private.UDisks2VolumeMonitor"
gvfsgdu = "org.gtk.Private.GduVolumeMonitor"
kde = "org.kde.DeviceNotifications"
@@ -124,12 +124,12 @@ mountChanged = [gvfs True, gvfsgdu False, kde, kdefallback]
{- gdu gvfs reliably generates this event whenever a
- drive is mounted/unmounted, whether automatically, or manually -}
gvfsgdu mount = matchAny
- { matchInterface = Just "org.gtk.Private.RemoteVolumeMonitor"
+ { matchInterface = Just "org.gtk.Private.UDisks2VolumeMonitor"
, matchMember = Just $ if mount then "MountAdded" else "MountRemoved"
}
{- new gvfs -}
gvfs mount = matchAny
- { matchInterface = Just "org.gtk.Private.RemoteVolumeMonitor"
+ { matchInterface = Just "org.gtk.Private.UDisks2VolumeMonitor"
, matchMember = Just $ if mount then "MountAdded" else "MountRemoved"
}
{- This event fires when KDE prompts the user what to do with a drive,