1
0
Fork 0

In progress...

This commit is contained in:
Kolan Sh 2016-04-03 19:45:58 +03:00
parent 85aa140257
commit 4d65c69f20
2 changed files with 6 additions and 9 deletions

View File

@ -1,14 +1,12 @@
extern static char SO_PATH[256]; extern static char SO_PATH[256];
/*namespace LAview.Core { namespace LAview.Core.Plugins {
class AppDirs { class AppDirs {
public static File so_path; public static File so_path;
public static File exec_dir; public static File exec_dir;
public static File common_dir; public static File common_dir;
public static string data_plugins_dir;
public static string object_plugins_dir;
public static string ui_dir; public static string ui_dir;
public static string settings_dir; public static string settings_dir;
@ -17,16 +15,14 @@ extern static char SO_PATH[256];
exec_dir = so_path.get_parent (); exec_dir = so_path.get_parent ();
common_dir = exec_dir.get_parent (); common_dir = exec_dir.get_parent ();
ui_dir = Path.build_path (Path.DIR_SEPARATOR_S, common_dir.get_path(), ui_dir = Path.build_path (Path.DIR_SEPARATOR_S, common_dir.get_path(),
"share/laview-core-"+Config.VERSION_MAJOR.to_string()+"/ui"); "share/laview-plugin-object-example-"+Config.VERSION_MAJOR.to_string()+"/ui");
settings_dir = Path.build_path (Path.DIR_SEPARATOR_S, common_dir.get_path(), "share/glib-2.0/schemas"); settings_dir = Path.build_path (Path.DIR_SEPARATOR_S, common_dir.get_path(), "share/glib-2.0/schemas");
data_plugins_dir = Path.build_path (Path.DIR_SEPARATOR_S, exec_dir.get_path(), stdout.printf ("ui_dir = %s\n", ui_dir);
"laview-core-"+Config.VERSION_MAJOR.to_string()+"/data-plugins"); stdout.printf ("settings_dir = %s\n", settings_dir);
object_plugins_dir = Path.build_path (Path.DIR_SEPARATOR_S, exec_dir.get_path(),
"laview-core-"+Config.VERSION_MAJOR.to_string()+"/object-plugins");
} }
public static void terminate () { public static void terminate () {
} }
} }
}*/ }

View File

@ -13,6 +13,7 @@ namespace LAview.Core.Plugins {
*/ */
construct { construct {
stdout.puts ("PluginObjectExample init () called\n"); stdout.puts ("PluginObjectExample init () called\n");
AppDirs.init ();
} }
/** /**