# include <locale.h>
#endif // HAVE_LOCALE_H
+#include <guile/gh.h>
+
#include "gettext.h"
}
#include "blackbox.hh"
#include "openbox.hh"
-int main(int argc, char **argv) {
- // initialize the locale
- setlocale(LC_ALL, "");
- bindtextdomain(PACKAGE, LOCALEDIR);
- textdomain(PACKAGE);
-
+void main_prog(int argc, char **argv) {
ob::Openbox openbox(argc, argv);
//ob::Blackbox blackbox(argc, argv, 0);
//Blackbox blackbox(argv, session_display, rc_file);
openbox.eventLoop();
+}
+
+int main(int argc, char **argv) {
+ // initialize the locale
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
- return(0);
+ // start up guile
+ //gh_enter(argc, argv, main_prog);
+ main_prog(argc, argv);
}