From 956cc9f7bc6b574647365ac1f10ab35c100961ed Mon Sep 17 00:00:00 2001 From: Torste Aikio Date: Mon, 31 May 2010 09:31:43 +0300 Subject: [PATCH] lircctl -> sudo --- debian/control | 2 +- debian/rules | 1 + src/irctrl_p.cpp | 4 ++-- src/selectremotedlg.cpp | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index bdd3052..bebb458 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Standards-Version: 3.7.2 Package: irwi Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: qt4-homescreen-loader, ${shlibs:Depends}, ${misc:Depends} Description: Small widget to control your TV etc This widget has basic controls to control IR controlled devices. XB-Maemo-Display-Name: QtIrreco Widget diff --git a/debian/rules b/debian/rules index ac2e4f5..c025c59 100755 --- a/debian/rules +++ b/debian/rules @@ -26,6 +26,7 @@ install: build dh_testroot dh_clean -k dh_installdirs +#dh_install # Add here commands to install the package into debian/your_appname cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install diff --git a/src/irctrl_p.cpp b/src/irctrl_p.cpp index 8adbc48..9cdf33e 100644 --- a/src/irctrl_p.cpp +++ b/src/irctrl_p.cpp @@ -11,14 +11,14 @@ IrCtrlPrivate::IrCtrlPrivate() : settings(NULL) { settings = new QSettings(); - std::system("lircctl start"); + std::system("sudo /etc/init.d/lirc start"); } IrCtrlPrivate::~IrCtrlPrivate() { delete settings; settings = NULL; - std::system("lircctl stop"); + std::system("sudo /etc/init.d/lirc stop"); } void IrCtrlPrivate::genericSendCmd(const QString &commandName) diff --git a/src/selectremotedlg.cpp b/src/selectremotedlg.cpp index acd11f6..6e4dd6e 100644 --- a/src/selectremotedlg.cpp +++ b/src/selectremotedlg.cpp @@ -199,7 +199,7 @@ void SelectRemoteDlg::remoteDownloadFinished(QNetworkReply *reply) reply->close(); reply->deleteLater(); - std::system("lircctl restart"); + std::system("sudo /etc/init.d/lirc restart"); emit remoteDownloaded(); setBusy(false); -- 1.7.9.5