[Xfce4-commits] [xfce/thunar-volman] 01/02: Workaround: Wait 5 second before mounting devices (bug #9193)
noreply at xfce.org
noreply at xfce.org
Sat Feb 28 19:00:16 CET 2015
This is an automated email from the git hooks/post-receive script.
hjudt pushed a commit to branch master
in repository xfce/thunar-volman.
commit f3f8ba9d92923492d93672676dffc5f65c068ea9
Author: Matias De lellis <mati86dl at gmail.com>
Date: Wed Aug 29 15:08:07 2012 -0300
Workaround: Wait 5 second before mounting devices (bug #9193)
This is obviously only a workaround that will get reverted when a proper
solution has been found, whatever that will look like. At least it gets
thunar-volman functional again.
---
thunar-volman/tvm-block-device.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/thunar-volman/tvm-block-device.c b/thunar-volman/tvm-block-device.c
index 072f198..da31efa 100644
--- a/thunar-volman/tvm-block-device.c
+++ b/thunar-volman/tvm-block-device.c
@@ -708,7 +708,7 @@ tvm_block_device_mount_finish (GVolume *volume,
-static void
+static gboolean
tvm_block_device_mount (TvmContext *context)
{
GMountOperation *mount_operation;
@@ -751,6 +751,7 @@ tvm_block_device_mount (TvmContext *context)
/* finish processing the device */
tvm_device_handler_finished (context);
}
+ return FALSE;
}
@@ -881,7 +882,7 @@ automount_disc:
if (automount)
{
/* mount the CD/DVD and continue with inspecting its contents */
- tvm_block_device_mount (context);
+ g_timeout_add_seconds(5, (GSourceFunc) tvm_block_device_mount, context);
}
}
else
@@ -904,7 +905,7 @@ automount_disc:
if (automount)
{
/* mount the partition and continue with inspecting its contents */
- tvm_block_device_mount (context);
+ g_timeout_add_seconds(5, (GSourceFunc) tvm_block_device_mount, context);
}
else
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list