diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-01-11 16:02:24 +0100 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-01-11 16:02:24 +0100 |
commit | 3aefd6a19bf316bc7829658eecb3e01c2509982d (patch) | |
tree | fb92a0d5573966286ea78f279d15fd8d8bbc4204 | |
parent | 3a1bf21052b1f9939ef574a4dfa6d4c1fe74df5d (diff) | |
download | ayatana-indicator-sound-3aefd6a19bf316bc7829658eecb3e01c2509982d.tar.gz ayatana-indicator-sound-3aefd6a19bf316bc7829658eecb3e01c2509982d.tar.bz2 ayatana-indicator-sound-3aefd6a19bf316bc7829658eecb3e01c2509982d.zip |
When creating indicator-sound's cache directory, use DirUtils.create_with_parents() instead of DirUtils.create().
Rationale described @ https://bugs.launchpad.net/indicator-sound/+bug/799383
-rw-r--r-- | src/metadata-menu-item.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala index 623aaf5..a7cbf46 100644 --- a/src/metadata-menu-item.vala +++ b/src/metadata-menu-item.vala @@ -62,8 +62,8 @@ public class MetadataMenuitem : PlayerItem private static string? create_album_art_temp_dir() { string path = GLib.Path.build_filename(Environment.get_user_cache_dir(), ALBUM_ART_DIR_SUFFIX); - if(DirUtils.create(path, 0700) == -1){ - warning("could not create a temp dir for remote album art, it must have been created already"); + if(DirUtils.create_with_parents(path, 0700) == -1){ + warning("could not create temp dir %s for remote album art, it must have been created already", path); } return path; } |