From 60d4df57ac335af81198a0ee6385044453dbb594 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Tue, 27 Sep 2016 20:10:17 +0900
Subject: [PATCH] Fix for destinations

---
 src/handlers/xdgurl.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp
index 8182f4a..ad737da 100644
--- a/src/handlers/xdgurl.cpp
+++ b/src/handlers/xdgurl.cpp
@@ -65,13 +65,13 @@ QJsonObject XdgUrl::_importDestinations()
 
     foreach (const QString key, appConfigDestinations.keys()) {
         QString value = appConfigDestinations[key].toString();
-        if (value.startsWith("$HOME")) {
+        if (value.contains("$HOME")) {
             value = value.replace("$HOME", Utility::File::homePath());
         }
-        else if (value.startsWith("$XDG_DATA")) {
+        else if (value.contains("$XDG_DATA")) {
             value = value.replace("$XDG_DATA", Utility::File::xdgDataHomePath());
         }
-        else if (value.startsWith("$KDE_DATA")) {
+        else if (value.contains("$KDE_DATA")) {
             value = value.replace("$KDE_DATA", Utility::File::kdeDataHomePath());
         }
         destinations[key] = value;
-- 
GitLab