summaryrefslogtreecommitdiff
path: root/thunar-volman
diff options
context:
space:
mode:
authorMatias De lellis <mati86dl@gmail.com>2012-08-29 15:08:07 -0300
committerHarald Judt <h.judt@gmx.at>2015-02-28 18:58:42 +0100
commitf3f8ba9d92923492d93672676dffc5f65c068ea9 (patch)
tree19aa1553d95ad80d6f5b1ce9a7846762387bde64 /thunar-volman
parent8d3cc36034cefa5f4f5edd0b90d0a8cbedbadf8f (diff)
downloadthunar-volman-f3f8ba9d92923492d93672676dffc5f65c068ea9.tar.gz
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.
Diffstat (limited to 'thunar-volman')
-rw-r--r--thunar-volman/tvm-block-device.c7
1 files 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
{