Browse Source

Add CDEmu Manager with systray patch

master
Fincer 7 years ago
parent
commit
57ba399199
3 changed files with 69 additions and 0 deletions
  1. +9
    -0
      Readme.md
  2. +37
    -0
      kde-cdemu-manager/PKGBUILD
  3. +23
    -0
      kde-cdemu-manager/minimize-at-startup.patch

+ 9
- 0
Readme.md View File

@ -52,6 +52,15 @@ Homepage:
FORMAT: Arch Linux PKGBUILD script + source archive.
**kde-cdemu-manager**
--------------
CDEmu Daemon manager for Plasma 5 desktop with an additional "start in systray" patch.
- minimize-at-startup.patch = Adds '--systray' option as a start parameter. When enabled, the program main window remains closed and the program is started only in the systray.
FORMAT: Arch Linux PKGBUILD script + patch file.
**kde-servicemenus-cr2fits**
--------------


+ 37
- 0
kde-cdemu-manager/PKGBUILD View File

@ -0,0 +1,37 @@
pkgname=kde-cdemu-manager
pkgver=0.7.2
pkgrel=1
pkgdesc="KDE CDEmu Manager is a simple frontend for CDEmu."
arch=('i686' 'x86_64')
url="https://www.linux-apps.com/p/998461"
license=('GPL')
depends=('qt5-base' 'kconfigwidgets' 'kdbusaddons' 'ki18n' 'knotifications' 'kxmlgui')
depends=('cdemu-daemon>=2.0')
provides=('kde-cdemu-manager')
conflicts=('kde-cdemu-manager')
makedepends=('cmake' 'extra-cmake-modules')
source=(https://dl.opendesktop.org/api/files/download/id/1481242372/kde_cdemu-0.7.2.tar.bz2
minimize-at-startup.patch)
md5sums=('063bc8e39287bc30afe5bf8912dfe2b6'
'c2219c13a4eb9860d16aa3b1958887e4')
prepare() {
patch -Np1 -i $srcdir/minimize-at-startup.patch
mkdir -p build
}
build() {
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` \
-DCMAKE_BUILD_TYPE=Release \
../kde_cdemu
make
}
package() {
cd build
make DESTDIR=$pkgdir install
}

+ 23
- 0
kde-cdemu-manager/minimize-at-startup.patch View File

@ -0,0 +1,23 @@
--- 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();
}

Loading…
Cancel
Save