Here are my autotests and the upstream patches attached.

Best regards.
-Sedat-
diff --git a/xdg-utils-1.1.3/autotests/t-xdg-open.sh b/xdg-utils-1.1.3-dileks/autotests/t-xdg-open.sh
index b15ae5ee1533..1dbdd6b85ab9 100755
--- a/autotests/t-xdg-open.sh
+++ b/autotests/t-xdg-open.sh
@@ -85,14 +85,18 @@ test_open_url kde4 kde-open
 test_that_it opens a URL with kde-open5 in KDE 5
 test_open_url kde5 kde-open5
 
-test_that_it opens a URL with gvfs-open in MATE
-test_open_url mate gvfs-open
-
-test_that_it opens a URL with mate-open if "gio open" and gvfs-open are \
-             missing in MATE
-mock_missing gio
-mock_missing gvfs-open
-test_open_url mate mate-open
+test_that_it opens a URL with kde-open in KDE 6
+test_open_url kde6 kde-open
+
+# Comment MATE block. -dileks
+##test_that_it opens a URL with gvfs-open in MATE
+##test_open_url mate gvfs-open
+##
+##test_that_it opens a URL with mate-open if "gio open" and gvfs-open are \
+##             missing in MATE
+##mock_missing gio
+##mock_missing gvfs-open
+##test_open_url mate mate-open
 
 test_that_it opens a URL with exo-open in XFCE
 test_open_url xfce exo-open
diff --git a/xdg-utils-1.1.3/autotests/test-lib.sh b/xdg-utils-1.1.3-dileks/autotests/test-lib.sh
index e48027e0d310..1a0bca868927 100644
--- a/autotests/test-lib.sh
+++ b/autotests/test-lib.sh
@@ -76,6 +76,10 @@ set_de_() {
             XDG_CURRENT_DESKTOP=KDE
             KDE_SESSION_VERSION=5
             ;;
+        kde6)
+            XDG_CURRENT_DESKTOP=KDE
+            KDE_SESSION_VERSION=6
+            ;;
         lxde)
             XDG_CURRENT_DESKTOP=LXDE
             ;;
From c10cdaf8a03997cc18e51ee6299f0dcc02c34870 Mon Sep 17 00:00:00 2001
From: Nicolas Fella <nicolas.fe...@gmx.de>
Date: Wed, 5 Jul 2023 09:55:21 +0200
Subject: xdg-open: Use correct kde-open on Plasma 6

---
 scripts/xdg-open.in | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'scripts/xdg-open.in')

diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
index 50e31e6..2456aa7 100644
--- a/scripts/xdg-open.in
+++ b/scripts/xdg-open.in
@@ -130,6 +130,9 @@ open_kde()
         5)
           kde-open${KDE_SESSION_VERSION} "$1"
         ;;
+        6)
+          kde-open "$1"
+        ;;
       esac
     else
         kfmclient exec "$1"
-- 
cgit v1.2.3

Attachment: series
Description: Binary data

Reply via email to