Source
52
52
#include <stdcasa/StdCasa/CrashReporter.h>
53
53
#endif
54
54
#include <sys/stat.h>
55
55
56
56
/*
57
57
#include <graphics/X11/X_enter.h>
58
58
#include <QApplication>
59
59
#include <graphics/X11/X_exit.h>
60
60
*/
61
61
62
+
#if ! defined(WITHOUT_DBUS)
62
63
#include <casadbus/utilities/Diagnostic.h>
64
+
#endif
63
65
#include <display/DisplayErrors.h>
64
66
#include <casacore/casa/System/AppState.h>
65
67
#include <algorithm>
66
68
67
69
#if defined(__APPLE__)
68
70
// for executable_path( )
69
71
#include <mach-o/dyld.h>
70
72
#else
71
73
// for executable_path( )
72
74
std::string read_link( const std::string &path ) {
232
234
};
233
235
234
236
235
237
int main( int argc, const char *argv[] ) {
236
238
237
239
std::string exepath(executable_path( ));
238
240
239
241
#ifndef NO_CRASH_REPORTER
240
242
CrashReporter::initializeFromApplication(argv[0]);
241
243
#endif
244
+
#if ! defined(WITHOUT_DBUS)
242
245
casa::dbus::diagnostic.argv( argc, argv );
246
+
#endif
243
247
244
248
bool server_startup = false;
245
249
bool daemon = false;
246
250
bool without_gui = false;
247
251
bool persistent = false;
248
252
bool casapy_start = false;
249
253
char *dbus_name = 0;
250
254
bool with_dbus = false;
251
255
char *logfile_path = 0;
252
256
bool initial_run = false;