29 lines
855 B
Vala
29 lines
855 B
Vala
extern static char SO_PATH[256];
|
|
|
|
namespace LAview.Core.Plugins {
|
|
|
|
class AppDirs : Object {
|
|
|
|
public static File so_path;
|
|
public static File exec_dir;
|
|
public static File common_dir;
|
|
public static string ui_dir;
|
|
public static string settings_dir;
|
|
|
|
public static void init () {
|
|
so_path = File.new_for_path ((string)SO_PATH);
|
|
exec_dir = so_path.get_parent ();
|
|
common_dir = exec_dir.get_parent ();
|
|
ui_dir = Path.build_path (Path.DIR_SEPARATOR_S, common_dir.get_path(),
|
|
"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");
|
|
stdout.printf ("ui_dir = %s\n", ui_dir);
|
|
stdout.printf ("settings_dir = %s\n", settings_dir);
|
|
|
|
}
|
|
|
|
public static void terminate () {
|
|
}
|
|
}
|
|
}
|