1 #include <boost/filesystem/operations.hpp>
2 using namespace boost::filesystem;
5 #include <QApplication>
7 #include "qui/MussaWindow.hpp"
8 #include "alg/parse_options.hpp"
9 #include "mussa_exceptions.hpp"
11 int main(int argc, char **argv)
15 // if we're under unix and don't have a display, see if we can still run
17 opts.useGUI = getenv("DISPLAY") != 0;
20 QApplication app(argc, argv, opts.useGUI);
21 Q_INIT_RESOURCE(icons);
23 initialize_mussa(opts, argc, argv);
25 if (opts.analysis == 0) {
31 MussaWindow win(opts.analysis);
36 } catch (mussa_error e) {
38 } catch (boost::filesystem::filesystem_error e) {
40 } catch (std::runtime_error e) {
43 qFatal("unrecognized exception");