fix checking of qmmp

This commit is contained in:
arcan1s 2014-06-10 09:57:30 +04:00
parent 178bbd0bc0
commit 608908fd02
4 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,7 @@
Ver.1.10.1: Ver.1.10.1:
- fix error with number formats in ps label - fix error with number formats in ps label
- fix first initialization of DataEngine
- fix checking of qmmp
Ver.1.10.0: Ver.1.10.0:
+ added tags $hddtotmb, $hddtotgb + added tags $hddtotmb, $hddtotgb

View File

@ -1,3 +1,8 @@
Вер.1.10.1:
- пофикшена ошибка с форматами чисел в поле ps
- пофикшена инициализация значений в DataEngine
- пофикшена проверка qmmp
Вер.1.10.0: Вер.1.10.0:
+ добавлены теги $hddtotmb, $hddtotgb + добавлены теги $hddtotmb, $hddtotgb
+ добавлены теги $memtotmb, $memtotgb, $swaptotmb, $swaptotgb + добавлены теги $memtotmb, $memtotgb, $swaptotmb, $swaptotgb

View File

@ -2,7 +2,7 @@
pkgname=kdeplasma-applets-pytextmonitor pkgname=kdeplasma-applets-pytextmonitor
_pkgname=pytextmonitor _pkgname=pytextmonitor
pkgver=1.10.0 pkgver=1.10.1
pkgrel=1 pkgrel=1
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM" pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@ -21,7 +21,7 @@ optdepends=("amarok: for music player monitor"
makedepends=('automoc4' 'cmake') makedepends=('automoc4' 'cmake')
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz) source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
install=${pkgname}.install install=${pkgname}.install
md5sums=('68227097322e3949b61b7bd1c0963511') md5sums=('8d5f8a34da85927d094153ba6d09be84')
backup=('usr/share/config/extsysmon.conf') backup=('usr/share/config/extsysmon.conf')
prepare() { prepare() {

View File

@ -459,7 +459,7 @@ void ExtendedSysMon::getPlayerInfo(const QString playerName,
} }
else if (playerName == QString("qmmp")) { else if (playerName == QString("qmmp")) {
// qmmp // qmmp
cmd = QString("qmmp --status"); cmd = QString("bash -c \"pgrep qmmp && qmmp --status || echo 'null'\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd; if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd;
processes[QString("player")][0]->start(cmd); processes[QString("player")][0]->start(cmd);
} }