aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LDesktop.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-02-04 13:10:28 -0500
committerKen Moore <moorekou@gmail.com>2016-02-04 13:10:28 -0500
commitdf9bf6b64ba0246203bf52a53ab1eb9338f18f44 (patch)
treed38a28e907a2d67504c846a425c221c639f0c778 /lumina-desktop/LDesktop.cpp
parentQuick patch to skip the desktop removal routine if the number of available X ... (diff)
downloadlumina-df9bf6b64ba0246203bf52a53ab1eb9338f18f44.tar.gz
lumina-df9bf6b64ba0246203bf52a53ab1eb9338f18f44.tar.bz2
lumina-df9bf6b64ba0246203bf52a53ab1eb9338f18f44.zip
Cleanup how the ~/Desktop/* shortcuts are removed a bit. Now it catches these special files and only runs the QFile::remove() function on it (just like deleteing the file from teh CLI), and the plugin itself is removed by the update routine later on after the filesystem watcher sees the change.
Diffstat (limited to 'lumina-desktop/LDesktop.cpp')
-rw-r--r--lumina-desktop/LDesktop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp
index 4da38e78..b7259e86 100644
--- a/lumina-desktop/LDesktop.cpp
+++ b/lumina-desktop/LDesktop.cpp
@@ -362,7 +362,7 @@ void LDesktop::RemoveDeskPlugin(QString ID){
settings->setValue(DPREFIX+"pluginlist", plugs);
settings->sync();
QTimer::singleShot(200, this, SLOT(UnlockSettings()) );
- }else if(ID.startsWith("applauncher::") ){
+ }/*else if(ID.startsWith("applauncher::") ){
//This was a temporary plugin (desktop file?) check for existance/dir and remove it as necessary
QString path = ID.section("---",0,0).section("::",1,50); //full file path
QFileInfo info(path);
@@ -373,7 +373,7 @@ void LDesktop::RemoveDeskPlugin(QString ID){
if(!info.isSymLink() && info.isDir()){ QProcess::startDetached("rm -r \""+path+"\""); }
else{ QFile::remove(path); } //just remove the file/symlink directly
}
- }
+ }*/
}
void LDesktop::IncreaseDesktopPluginIcons(){
bgstack15