[byzanz] Use default permissions when storing the final file
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [byzanz] Use default permissions when storing the final file
- Date: Mon, 17 Aug 2009 13:27:43 +0000 (UTC)
commit bbafa9de867c8d06e375a0d81ece5543a33e79c5
Author: Benjamin Otte <otte gnome org>
Date: Sun Aug 16 02:57:34 2009 +0200
Use default permissions when storing the final file
This way, the files end up being world-readable, which is more likely to
be what people want when they record screencasts.
src/byzanzapplet.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/byzanzapplet.c b/src/byzanzapplet.c
index 1efc89a..0501e55 100644
--- a/src/byzanzapplet.c
+++ b/src/byzanzapplet.c
@@ -131,8 +131,8 @@ check_done_saving_cb (gpointer data)
}
/* There's no g_file_move_async(), so use copy + delete */
g_file_copy_async (pending->source, pending->destination,
- G_FILE_COPY_OVERWRITE, G_PRIORITY_DEFAULT_IDLE,
- NULL, NULL, NULL, done_saving_cb, pending);
+ G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS,
+ G_PRIORITY_DEFAULT_IDLE, NULL, NULL, NULL, done_saving_cb, pending);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]