BrowserWindow.vala
authorKH Lau <khlau@roojs.com>
Thu, 8 Mar 2018 08:43:10 +0000 (16:43 +0800)
committerKH Lau <khlau@roojs.com>
Thu, 8 Mar 2018 08:43:10 +0000 (16:43 +0800)
BrowserWindow.vala

index f8c67b1..84e3dd0 100644 (file)
@@ -422,6 +422,12 @@ public class BrowserWindow : Object
         
         public void delete_cookiefile () {
             print("deleting tmp file %s\n",_this.cookie_file);
+            File file = File.new_for_path (_this.cookie_file);
+                try {
+                         file.delete ();
+                } catch (Error e) {
+                         stdout.printf ("Error: %s\n", e.message);
+                }
         }
     }