aboutsummaryrefslogtreecommitdiff
path: root/lumina-search/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-05-25 09:30:43 -0400
committerKen Moore <ken@pcbsd.org>2015-05-25 09:30:43 -0400
commit172b7e4565384da84ad3e572caf47596c36ad9f1 (patch)
tree121436130d5c671c55d31ea38c8a869e179e5d99 /lumina-search/MainUI.cpp
parentMove the desktop initialization after the menu's initialization. With all teh... (diff)
downloadlumina-172b7e4565384da84ad3e572caf47596c36ad9f1.tar.gz
lumina-172b7e4565384da84ad3e572caf47596c36ad9f1.tar.bz2
lumina-172b7e4565384da84ad3e572caf47596c36ad9f1.zip
Add the ability to show binaries on the lumina-search output as well as *.desktop files.
Diffstat (limited to 'lumina-search/MainUI.cpp')
-rw-r--r--lumina-search/MainUI.cpp8
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) );
}
bgstack15