[gnome-games/wip/exalm/database-fix] application: Ensure data dir exists



commit 3bc24339281e0105d988d7598ad6b0a9cc4be7a4
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sat Jan 19 16:58:53 2019 +0500

    application: Ensure data dir exists
    
    Fixes #153

 src/ui/application.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index f41dc45b..c0b285cb 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -30,6 +30,8 @@ public class Games.Application : Gtk.Application {
                add_actions ();
                add_signal_handlers ();
 
+               try_make_dir (get_data_dir ());
+
                var database_path = get_database_path ();
                try {
                        database = new Database (database_path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]