[gnome-music] Create ~/.cache/media-art if folder does not exist Fix #700102
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Create ~/.cache/media-art if folder does not exist Fix #700102
- Date: Sun, 12 May 2013 16:25:35 +0000 (UTC)
commit c660a5537f553ef83cf4b31582c088b60ad704ed
Author: Seif Lotfy <seif lotfy com>
Date: Sun May 12 18:24:33 2013 +0200
Create ~/.cache/media-art if folder does not exist
Fix #700102
src/albumArtCache.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/albumArtCache.js b/src/albumArtCache.js
index f56c028..e9e8d45 100644
--- a/src/albumArtCache.js
+++ b/src/albumArtCache.js
@@ -42,6 +42,12 @@ const AlbumArtCache = new Lang.Class({
GLib.get_user_cache_dir(),
"media-art"
]);
+ try {
+ var file = Gio.file_new_for_path(this.cacheDir);
+ file.make_directory(null);
+ }
+ catch (error) {
+ }
},
lookup: function(size, artist, album) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]