[gnome-shell-extensions] Skip over XDG directories that cannot be found.
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] Skip over XDG directories that cannot be found.
- Date: Tue, 2 Dec 2014 17:59:56 +0000 (UTC)
commit 768bad6e1eb64787ad11d8471c141f777ff4fb5f
Author: Maxime Henrion <mhenrion gmail com>
Date: Tue Dec 2 18:51:59 2014 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/places-menu/placeDisplay.js b/extensions/places-menu/placeDisplay.js
index a741e4b..f7a2567 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]