aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/desktop-plugins
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-05-24 21:01:43 -0400
committerKen Moore <ken@ixsystems.com>2017-05-24 21:01:43 -0400
commit1bafe0633b84676adf0c7f2d5f3113d021e81939 (patch)
tree4d50cc149383132f5796695479503e2c1712e949 /src-qt5/core/lumina-desktop/desktop-plugins
parentSwitch the usage of compton: default to it being disabled rather than enabled... (diff)
downloadlumina-1bafe0633b84676adf0c7f2d5f3113d021e81939.tar.gz
lumina-1bafe0633b84676adf0c7f2d5f3113d021e81939.tar.bz2
lumina-1bafe0633b84676adf0c7f2d5f3113d021e81939.zip
Add in New Dir, New File, and Paste functionality to the desktop itself (if it represents the desktop folder), and also verify that the monitor ID migrator works properly when the single-monitor id changes between sessions.
Diffstat (limited to 'src-qt5/core/lumina-desktop/desktop-plugins')
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
index 1730dbaa..266025c5 100644
--- a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
+++ b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
@@ -203,7 +203,8 @@ void AppLauncherPlugin::fileProperties(){
void AppLauncherPlugin::fileDelete(){
QString path = button->whatsThis();
if(path.isEmpty() || !QFile::exists(path)){ return; } //invalid file
- QFile::remove(path);
+ if(QFileInfo(path).isDir()){ QProcess::startDetached("rm -r \""+path+"\""); }
+ else{ QFile::remove(path); }
}
void AppLauncherPlugin::fileCut(){
bgstack15