openbox/src/main.cc

39 lines
699 B
C++
Raw Normal View History

// -*- mode: C++; indent-tabs-mode: nil; -*-
2002-04-11 03:20:38 +00:00
2002-11-05 05:56:44 +00:00
/*! @file main.cc
@brief Main entry point for the application
*/
2002-04-11 03:20:38 +00:00
#ifdef HAVE_CONFIG_H
# include "../config.h"
#endif // HAVE_CONFIG_H
extern "C" {
2002-11-16 10:51:47 +00:00
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif // HAVE_LOCALE_H
2002-11-01 11:18:32 +00:00
#include "gettext.h"
}
2002-11-01 11:18:32 +00:00
#include <string>
using std::string;
2002-04-11 03:20:38 +00:00
#include "blackbox.hh"
#include "openbox.hh"
2002-04-11 03:20:38 +00:00
int main(int argc, char **argv) {
2002-11-03 05:56:15 +00:00
// initialize the locale
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
ob::Openbox openbox(argc, argv);
//ob::Blackbox blackbox(argc, argv, 0);
2002-12-19 23:54:41 +00:00
//Blackbox blackbox(argv, session_display, rc_file);
openbox.eventLoop();
2002-04-11 03:20:38 +00:00
return(0);
}