GNOME Bugzilla – Bug 649981
Use Shell.get_file_contents_utf8_sync over GLib.file_get_contents
Last modified: 2011-05-20 09:14:40 UTC
We need to fix the latter to return a byte array, which gjs doesn't deal with well right now.
Created attachment 187650 [details] [review] Use Shell.get_file_contents_utf8_sync over GLib.file_get_contents
Review of attachment 187650 [details] [review]: looks fine to me
Attachment 187650 [details] pushed as bfd344c - Use Shell.get_file_contents_utf8_sync over GLib.file_get_contents
This broke for me, i'm commiting this fix: diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 52a00da..a3e2918 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -6,6 +6,7 @@ const Gio = imports.gi.Gio; const Lang = imports.lang; const Meta = imports.gi.Meta; const St = imports.gi.St; +const Shell = imports.gi.Shell; const AltTab = imports.ui.altTab; const WorkspaceSwitcherPopup = imports.ui.workspaceSwitcherPopup;