[PC-BSD Commits] r9774 - pcbsd/current/src-qt4/pc-softwaremanager

svn at pcbsd.org svn at pcbsd.org
Thu Mar 24 08:16:53 PDT 2011


Author: kris
Date: 2011-03-24 08:16:53 -0700 (Thu, 24 Mar 2011)
New Revision: 9774

Modified:
   pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbiupdate.cpp
Log:

Fixed some bugs installing desktop icons for new installed apps



Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbiupdate.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbiupdate.cpp	2011-03-24 15:07:05 UTC (rev 9773)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-pbiupdate.cpp	2011-03-24 15:16:53 UTC (rev 9774)
@@ -430,6 +430,7 @@
   	pbi->setDownloadArch(pbiAvail->getArch(pbiNum));
   	pbi->setDownloadVersion(pbiAvail->getVer(pbiNum));
   	pbi->setDownloadRepo(pbiRepos->getID(reponum));
+  	pbi->setProgIndexName(name.toLower() + "-" + pbiAvail->getVer(pbiNum).toLower() + "-" + pbiAvail->getArch(pbiNum).toLower());
   	pbi->setWorkingStatus(PBINEWDOWNLOAD);
   	pbi->setUpdateAvail(false);
 
@@ -597,6 +598,7 @@
 // Installs desktop icons for this PBI
 void PBM::installDesktopIcon(PBI *pbi)
 {
-  installPBIDesktopIcon = new QProcess();
-  installPBIDesktopIcon->start(QString("pbi_icon"), QStringList() << "add-desktop " + pbi->getProgIndexName() );
+  QString cmd = "pbi_icon add-desktop " + pbi->getProgIndexName();
+  qDebug() << "Running:" << cmd;
+  system(cmd.toLatin1());
 }



More information about the Commits mailing list