aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-open
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-01-17 12:23:15 -0500
committerKen Moore <ken@ixsystems.com>2017-01-17 12:23:15 -0500
commit1739d61d1e15653b5ea82761e0b6fa237b9fbdf8 (patch)
tree2c30d993e6da5af1f5dfe295ebc32c33472dbb9e /src-qt5/core/lumina-open
parentAdjust the LuminaXDG wildcard replacement routines a bit (%i, %c, etc..) so t... (diff)
downloadlumina-1739d61d1e15653b5ea82761e0b6fa237b9fbdf8.tar.gz
lumina-1739d61d1e15653b5ea82761e0b6fa237b9fbdf8.tar.bz2
lumina-1739d61d1e15653b5ea82761e0b6fa237b9fbdf8.zip
Fix up some handling of the non-application .desktop file types:
1) Make sure the "LINK" type uses the default browser (even for local file links) 2) Make sure the "DIR" type uses the default file manager.
Diffstat (limited to 'src-qt5/core/lumina-open')
-rw-r--r--src-qt5/core/lumina-open/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-open/main.cpp b/src-qt5/core/lumina-open/main.cpp
index 8d9f4cda..13213fa1 100644
--- a/src-qt5/core/lumina-open/main.cpp
+++ b/src-qt5/core/lumina-open/main.cpp
@@ -279,6 +279,8 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
inFile = DF.url;
cmd.clear();
extension = inFile.section(":",0,0);
+ if(extension=="file"){ extension = "http"; } //local file URL - Make sure we use the default browser for a LINK type
+ extension.prepend("x-scheme-handler/");
watch = DF.startupNotify || !DF.filePath.contains("/xdg/autostart/");
}else{
ShowErrorDialog( argc, argv, QString(QObject::tr("URL shortcut is missing the URL: %1")).arg(inFile) );
@@ -289,7 +291,7 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
//This is a directory link - adjust inputs
inFile = DF.path;
cmd.clear();
- extension = "directory";
+ extension = "inode/directory";
watch = DF.startupNotify || !DF.filePath.contains("/xdg/autostart/");
}else{
ShowErrorDialog( argc, argv, QString(QObject::tr("Directory shortcut is missing the path to the directory: %1")).arg(inFile) );
bgstack15