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

  1. --- a/kde_cdemu/src/main.cpp
  2. +++ b/kde_cdemu/src/main.cpp
  3. @@ -67,6 +67,9 @@
  4. QCommandLineOption statusOption("status", i18n("Show information about devices."));
  5. parser.addOption(statusOption);
  6. +
  7. + QCommandLineOption systrayOption("systray", i18n("Start program in systray."));
  8. + parser.addOption(systrayOption);
  9. parser.process(app);
  10. aboutData.processCommandLine(&parser);
  11. @@ -133,6 +136,10 @@
  12. // automatically destroyed when closed
  13. MainWindow *window = new MainWindow();
  14. window->show();
  15. + {
  16. + if (parser.isSet(systrayOption))
  17. + window->hide();
  18. + }
  19. return app.exec();
  20. }