From ffcb6592bfc9a47e9c56014f955f6deb1c76db85 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 2 Jun 2016 15:26:54 -0400 Subject: Fix a bunch of little things with the desktop: 1) Reset which dirs are watched for apps to be installed into every time the watcher updates (fixes the detection of KDE apps getting installed/removed) 2) Add a new LuminaUtils function for converting a .desktop or binary name into a full path (searching all the various system dirs until it finds the file) 3) Convert the luminaDesktop.conf parser to allow relative paths/filenames for favorite/default apps 4) Update the default luminaDesktop.conf file quite a bit so there are app actually setup out of box. 5) Update the luminaDesktop.conf parser to properly set mimetypes as needed. 6) Fix the install location of the lumina-fm icon. --- src-qt5/core/libLumina/LuminaUtils.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src-qt5/core/libLumina/LuminaUtils.h') diff --git a/src-qt5/core/libLumina/LuminaUtils.h b/src-qt5/core/libLumina/LuminaUtils.h index 32109244..e07363ca 100644 --- a/src-qt5/core/libLumina/LuminaUtils.h +++ b/src-qt5/core/libLumina/LuminaUtils.h @@ -54,8 +54,9 @@ public: static QStringList listSubDirectories(QString dir, bool recursive = true); //Convert an input file/dir path to an absolute file path - static QString PathToAbsolute(QString path); - + static QString PathToAbsolute(QString path); //This is primarily for CLI usage (relative paths) + static QString AppToAbsolute(QString path); //This is for looking up a binary/ *.desktop path + //Get the list of all file extensions which Qt can read (lowercase) static QStringList imageExtensions(bool wildcards = false); -- cgit