~dannote/midori/luaplugin

« back to all changes in this revision

Viewing changes to extensions/adblock/subscriptions.vala

  • Committer: RabbitBot
  • Author(s): Christian Dywan
  • Date: 2015-04-19 12:20:44 UTC
  • mfrom: (6932.2.2 midori.trunks)
  • Revision ID: rabbitbot-20150419122044-laerc4da7hywjkqm
Fix cache dir path in Adblock and always mkdir tmp

Show diffs side-by-side

added added

removed removed

Lines of Context:
317
317
            if (uri.has_prefix ("file://"))
318
318
                path = Filename.from_uri (uri);
319
319
            else {
320
 
                string cache_dir = GLib.Path.build_filename (GLib.Environment.get_home_dir (), ".cache", "midori", "adblock");
 
320
                string cache_dir = GLib.Path.build_filename (GLib.Environment.get_user_cache_dir (), PACKAGE_NAME, "adblock");
321
321
                Midori.Paths.mkdir_with_parents (cache_dir);
322
322
                string filename = Checksum.compute_for_string (ChecksumType.MD5, this.uri, -1);
323
323
                path = GLib.Path.build_filename (cache_dir, filename);