#include #include #include #include #include #include #include "model/pulsemodel.h" #include "ui/mixerwindow.h" #include "ui/tmixapp.h" static TDECmdLineOptions options[] = { TDECmdLineLastOption }; int main( int argc, char **argv ) { TDEAboutData about( "tmix", I18N_NOOP("TMix"), "0.1", I18N_NOOP("Trinity audio mixer"), TDEAboutData::License_GPL_V2, "(C) 2024 Trinity Desktop Project" ); TDECmdLineArgs::init( argc, argv, &about ); TDECmdLineArgs::addCmdLineOptions( options ); KUniqueApplication::addCmdLineOptions(); if ( !KUniqueApplication::start() ) return 0; TmixApp app; app.disableSessionManagement(); PulseModel *model = new PulseModel; if ( !model->open() ) { delete model; return 1; } MixerWindow *win = new MixerWindow( model ); app.setMainWindow( win ); TDEConfig *cfg = TDEGlobal::config(); cfg->setGroup("General"); if ( !cfg->readBoolEntry("DockInTray", true) ) win->show(); return app.exec(); }