aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-08-23 20:35:38 -0400
committerKen Moore <ken@pcbsd.org>2016-08-23 20:35:38 -0400
commit7e9f1d3dfd195089de336274721726a43b88e4e9 (patch)
tree44492d24ec8df01ad93a33be48b287cd28e7daf1 /src-qt5/core/lumina-desktop
parentAdd in the pending updates detection for the shutdown/reboot options in the s... (diff)
downloadlumina-7e9f1d3dfd195089de336274721726a43b88e4e9.tar.gz
lumina-7e9f1d3dfd195089de336274721726a43b88e4e9.tar.bz2
lumina-7e9f1d3dfd195089de336274721726a43b88e4e9.zip
Fix up the auto-creation/removal of application symlinks when apps are installed/removed during a session.
Diffstat (limited to 'src-qt5/core/lumina-desktop')
-rw-r--r--src-qt5/core/lumina-desktop/AppMenu.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/AppMenu.cpp b/src-qt5/core/lumina-desktop/AppMenu.cpp
index b239610a..cbf71e62 100644
--- a/src-qt5/core/lumina-desktop/AppMenu.cpp
+++ b/src-qt5/core/lumina-desktop/AppMenu.cpp
@@ -56,10 +56,13 @@ void AppMenu::updateAppList(){
//Remove any old symlinks first
QString filename = tmp[i].section("/",-1);
//qDebug() << "Check for symlink:" << filename;
- if(QFile::exists(desktop+filename) && QFileInfo(desktop+filename).isSymLink() ){ QFile::remove(desktop+filename); }
+ if( QFileInfo(desktop+filename).isSymLink() ){ QFile::remove(desktop+filename); }
}
tmp = sysApps->newApps;
for(int i=0; i<tmp.length() && !desktop.isEmpty(); i++){
+ XDGDesktop desk = sysApps->files.value(tmp[i]);
+ if(desk.isHidden || !LXDG::checkValidity(desk, false) ){ continue; } //skip this one
+ //qDebug() << "New App: " << tmp[i] << desk.filePath << "Hidden:" << desk.isHidden;
//Create a new symlink for this file if one does not exist
QString filename = tmp[i].section("/",-1);
//qDebug() << "Check for symlink:" << filename;
bgstack15