Commit 08510dd
add PREFIX to search path
Changed files (2)
Diff
@@ -218,7 +218,10 @@ public abstract class FontDisplay : GLib.Object { f = get_file ("/usr/share/birdfont/" + d + "/", name); if (likely (f.query_exists ())) return f;- ++ f = get_file (@"$PREFIX/share/birdfont/" + d + "/", name);+ if (likely (f.query_exists ())) return f;+ warning (@"Did not find file $name in $d"); return f; @@ -39,8 +39,6 @@ public class MainWindow { menu_tab = new MenuTab (); tool_tip = new TooltipArea (); over_view = new OverView(); - - print (@"\n\nPREFIX: $PREFIX\n\n"); } public void set_native (NativeWindow nw) { @@ -65,8 +63,8 @@ public class MainWindow { internal static Glyph get_current_glyph () { if (unlikely (is_null (Supplement.current_glyph))) { - warning ("No default glyph have been set yet.\n"); - return new Glyph ("no_glyph_created"); + warning ("No default glyph have been set yet.\n"); + return new Glyph ("no_glyph_created"); } return Supplement.current_glyph;