From c1143fa716f6de0e28f46e213b0b9c3c33de3915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20R=C3=BCedlinger?= Date: Tue, 5 Sep 2017 07:58:33 +0200 Subject: [PATCH] apps-menu: Use "0o" prefix for octal literals In short, gjs complains that octal escape sequences are deprecated and advises to use the "0o" prefix for octal literals. Do that to fix the warning. https://bugzilla.gnome.org/show_bug.cgi?id=787294 --- extensions/apps-menu/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js index 7edfa313..2f4002ad 100644 --- a/extensions/apps-menu/extension.js +++ b/extensions/apps-menu/extension.js @@ -358,7 +358,7 @@ const DesktopTarget = new Lang.Class({ (o, res) => { try { let info = o.query_info_finish(res); - let mode = info.get_attribute_uint32(modeAttr) | 0100; + let mode = info.get_attribute_uint32(modeAttr) | 0o100; info.set_attribute_uint32(modeAttr, mode); info.set_attribute_string(trustedAttr, 'yes');