#include <config.h>
#include <kapp.h>
#include <qpixmap.h>
#include <signal.h>
#include <iostream.h>
#include "kexplorer.h"

void signal_handler(int sig)
{ ((KExplorer*)(kapp->mainWidget()))->catchSignal(sig);}

int main(int argc, char *argv[])
{
	KApplication	app(argc,argv,"kexplorer");
	KExplorer	*expl = new KExplorer((argc > 1 ? argv[1] : 0));
//	expl->resize(650,500);
	app.setMainWidget(expl);
	expl->show();
signal(SIGALRM,SIG_IGN);
#ifdef	HAVE_SOLARIS
sigset(SIGPIPE,signal_handler);
#else
signal(SIGPIPE,signal_handler);
#endif
	return app.exec();
}
