diff options
Diffstat (limited to 'lumina-search/MainUI.cpp')
-rw-r--r-- | lumina-search/MainUI.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lumina-search/MainUI.cpp b/lumina-search/MainUI.cpp index 8f90d536..08356093 100644 --- a/lumina-search/MainUI.cpp +++ b/lumina-search/MainUI.cpp @@ -113,7 +113,7 @@ if(ui->radio_apps->isChecked()){ this->close(); } } void MainUI::LaunchItem(QListWidgetItem *item){ - QProcess::startDetached("lumina-open \""+item->whatsThis()+"\""); + QProcess::startDetached("lumina-open \""+item->whatsThis()+"\""); } void MainUI::searchTypeChanged(){ @@ -176,7 +176,11 @@ void MainUI::foundSearchItem(QString path){ it->setIcon( LXDG::findIcon("inode-directory","") ); it->setText( path.replace(QDir::homePath(), "~") ); }else{ - it->setIcon( LXDG::findMimeIcon(path.section("/",-1).section(".",-1)) ); + if(QFileInfo(path).isExecutable()){ + it->setIcon( LXDG::findIcon("application-x-executable","") ); + }else{ + it->setIcon( LXDG::findMimeIcon(path.section("/",-1).section(".",-1)) ); + } it->setText( path.section("/",-1) ); } |