From 76bb40fc98fe91f587144af35d623e96b0baed19 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 20 Jun 2018 21:59:12 +0300 Subject: [PATCH] Separate gschemas.compiled --- src/laview-core/data-plugins/AppDirs.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/laview-core/data-plugins/AppDirs.vala b/src/laview-core/data-plugins/AppDirs.vala index 0a3293c..fa50e95 100644 --- a/src/laview-core/data-plugins/AppDirs.vala +++ b/src/laview-core/data-plugins/AppDirs.vala @@ -23,6 +23,9 @@ namespace LAview.DataExample { "share/laview-data-example-"+Config.VERSION_MAJOR.to_string()+"/ui"); stdout.printf ("Vala:so_path=%s\n", so_path.get_path()); settings_dir = Path.build_path (Path.DIR_SEPARATOR_S, common_dir.get_path(), "share/glib-2.0/schemas"); + string w32dhack_sdir = settings_dir+"/laview-data-example-"+Config.VERSION_MAJOR.to_string(); + if (File.new_for_path(w32dhack_sdir+"/gschemas.compiled").query_exists ()) + settings_dir = w32dhack_sdir; stdout.printf ("ui_dir = %s\n", ui_dir); stdout.printf ("settings_dir = %s\n", settings_dir);