[PC-BSD Commits] r12118 - pcbsd/current/src-qt4/pc-softwaremanager
svn at pcbsd.org
svn at pcbsd.org
Fri Aug 12 11:33:44 PDT 2011
Author: kris
Date: 2011-08-12 11:33:44 -0700 (Fri, 12 Aug 2011)
New Revision: 12118
Modified:
pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp
Log:
Make sure we remove desktop / menu / mime / path links and icons at removal time
Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp 2011-08-12 17:25:32 UTC (rev 12117)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp 2011-08-12 18:33:44 UTC (rev 12118)
@@ -255,6 +255,36 @@
busyDialog->setLayout(busyLayout);
busyDialog->show();
+ // Remove icons
+ /********************/
+ QProcess pbiicondel;
+
+ pbiicondel.start(QString("pbi_icon"), QStringList() << "del-desktop" << pbi->getProgIndexName() );
+ while ( pbiicondel.state() != QProcess::NotRunning ) {
+ pbiicondel.waitForFinished(50);
+ QCoreApplication::processEvents();
+ }
+
+ pbiicondel.start(QString("pbi_icon"), QStringList() << "del-menu" << pbi->getProgIndexName() );
+ while ( pbiicondel.state() != QProcess::NotRunning ) {
+ pbiicondel.waitForFinished(50);
+ QCoreApplication::processEvents();
+ }
+
+ pbiicondel.start(QString("pbi_icon"), QStringList() << "del-mime" << pbi->getProgIndexName() );
+ while ( pbiicondel.state() != QProcess::NotRunning ) {
+ pbiicondel.waitForFinished(50);
+ QCoreApplication::processEvents();
+ }
+
+ pbiicondel.start(QString("pbi_icon"), QStringList() << "del-pathlnk" << pbi->getProgIndexName() );
+ while ( pbiicondel.state() != QProcess::NotRunning ) {
+ pbiicondel.waitForFinished(50);
+ QCoreApplication::processEvents();
+ }
+ /********************/
+ // Done removing icons
+
// Do the delete now
QProcess pbicmd;
if ( pbi->getInstallBy() == "root" || pbi->getInstallBy() != RealUserName)
More information about the Commits
mailing list