From 3771d491492a3ed837dc75e932660f74fc375caf Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Tue, 2 Dec 2014 18:51:59 +0100 Subject: [PATCH] Skip over XDG directories that cannot be found. This fixes loading the places menu gnome-shell extension when the XDG directories have not been configured. https://bugzilla.gnome.org/show_bug.cgi?id=741033 --- extensions/places-menu/placeDisplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/places-menu/placeDisplay.js b/extensions/places-menu/placeDisplay.js index a741e4ba..f7a2567d 100644 --- a/extensions/places-menu/placeDisplay.js +++ b/extensions/places-menu/placeDisplay.js @@ -202,7 +202,7 @@ const PlacesManager = new Lang.Class({ let specials = []; for (let i = 0; i < DEFAULT_DIRECTORIES.length; i++) { let specialPath = GLib.get_user_special_dir(DEFAULT_DIRECTORIES[i]); - if (specialPath == homePath) + if (specialPath == null || specialPath == homePath) continue; let file = Gio.File.new_for_path(specialPath), info;