[gnome-sound-recorder] Fix deprecated file creation mask



commit 79271550003ebc82d41555ec4d8e203c13300a9c
Author: Miguel Vaello Martínez <miguel vaellomartinez gmail com>
Date:   Sun Dec 20 15:44:32 2015 +0100

    Fix deprecated file creation mask
    
    The old way to set the file mode in octal (mask) was deprecated
    and should be replaced by parsing the mask from string to
    integer (octal).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759700
    
    Signed-off-by: Meg Ford <megford gnome org>

 src/application.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 24da08f..2ae5bda 100644
--- a/src/application.js
+++ b/src/application.js
@@ -93,7 +93,7 @@ const Application = new Lang.Class({
         let path = GLib.build_filenamev([GLib.get_home_dir(), _("Recordings")]);
 
         // Ensure Recordings directory
-        GLib.mkdir_with_parents(path, 0755);
+        GLib.mkdir_with_parents(path, parseInt("0755", 8));
         this.saveDir = Gio.file_new_for_path(path);
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]