Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
681 B

--- a/kde_cdemu/src/main.cpp
+++ b/kde_cdemu/src/main.cpp
@@ -67,6 +67,9 @@
QCommandLineOption statusOption("status", i18n("Show information about devices."));
parser.addOption(statusOption);
+
+ QCommandLineOption systrayOption("systray", i18n("Start program in systray."));
+ parser.addOption(systrayOption);
parser.process(app);
aboutData.processCommandLine(&parser);
@@ -133,6 +136,10 @@
// automatically destroyed when closed
MainWindow *window = new MainWindow();
window->show();
+ {
+ if (parser.isSet(systrayOption))
+ window->hide();
+ }
return app.exec();
}