Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qtxdg-tools for openSUSE:Factory 
checked in at 2026-11-20 14:45:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qtxdg-tools (Old)
 and      /work/SRC/openSUSE:Factory/.qtxdg-tools.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qtxdg-tools"

Fri Nov 20 14:45:42 2026 rev:10 rq:1398770 version:4.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/qtxdg-tools/qtxdg-tools.changes  2026-04-22 
16:58:16.424717065 +0200
+++ /work/SRC/openSUSE:Factory/.qtxdg-tools.new.1251/qtxdg-tools.changes        
2026-11-20 14:48:12.858165669 +0100
@@ -1,0 +2,6 @@
+Fri Nov  6 10:00:01 UTC 2026 - Андрей Алыпов <[email protected]>
+
+- Update to version 4.5.0:
+  * Do not choose the format of URLs sent to XdgDesktop::startDetached().
+
+-------------------------------------------------------------------

Old:
----
  qtxdg-tools-4.4.0.tar.xz
  qtxdg-tools-4.4.0.tar.xz.asc

New:
----
  qtxdg-tools-4.5.0.tar.xz
  qtxdg-tools-4.5.0.tar.xz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qtxdg-tools.spec ++++++
--- /var/tmp/diff_new_pack.ypNU78/_old  2026-11-20 14:48:16.201306939 +0100
+++ /var/tmp/diff_new_pack.ypNU78/_new  2026-11-20 14:48:16.205307108 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package qtxdg-tools
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           qtxdg-tools
-Version:        4.4.0
+Version:        4.5.0
 Release:        0
 Summary:        User tools for libqtxg
 License:        LGPL-2.1-or-later
@@ -29,7 +29,7 @@
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
 
-BuildRequires:  cmake(Qt6Core) >= 6.6.0
+BuildRequires:  cmake(Qt6Core) >= 6.10.0
 BuildRequires:  cmake(lxqt2-build-tools)
 
 BuildRequires:  pkgconfig(Qt6Xdg)

++++++ qtxdg-tools-4.4.0.tar.xz -> qtxdg-tools-4.5.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtxdg-tools-4.4.0/CHANGELOG 
new/qtxdg-tools-4.5.0/CHANGELOG
--- old/qtxdg-tools-4.4.0/CHANGELOG     2026-04-20 09:11:05.000000000 +0200
+++ new/qtxdg-tools-4.5.0/CHANGELOG     2026-11-03 11:43:51.000000000 +0100
@@ -1,3 +1,8 @@
+qtxdg-tools-4.5.0 / 2026-11-05
+===============================
+ * Fixed minor indentation issue.
+ * Don't choose the format of URLS sent to `XdgDesktop::startDetached()`.
+
 qtxdg-tools-4.4.0 / 2026-04-20
 ===============================
  * Bumped the version and dependencies.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtxdg-tools-4.4.0/CMakeLists.txt 
new/qtxdg-tools-4.5.0/CMakeLists.txt
--- old/qtxdg-tools-4.4.0/CMakeLists.txt        2026-04-20 09:11:05.000000000 
+0200
+++ new/qtxdg-tools-4.5.0/CMakeLists.txt        2026-11-03 11:43:51.000000000 
+0100
@@ -7,13 +7,13 @@
 project(qtxdg-tools)
 
 set(QTXDG_TOOLS_MAJOR_VERSION 4)
-set(QTXDG_TOOLS_MINOR_VERSION 4)
+set(QTXDG_TOOLS_MINOR_VERSION 5)
 set(QTXDG_TOOLS_PATCH_VERSION 0)
 set(QTXDG_TOOLS_VERSION_STRING 
${QTXDG_TOOLS_MAJOR_VERSION}.${QTXDG_TOOLS_MINOR_VERSION}.${QTXDG_TOOLS_PATCH_VERSION})
 
-set(LXQTBT_MINIMUM_VERSION "2.4.0")
-set(QTXDG_MINIMUM_VERSION "4.4.0")
-set(QT_MINIMUM_VERSION "6.6.0")
+set(LXQTBT_MINIMUM_VERSION "2.5.0")
+set(QTXDG_MINIMUM_VERSION "4.5.0")
+set(QT_MINIMUM_VERSION "6.10.0")
 
 find_package(lxqt2-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
 find_package(Qt6 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Core)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtxdg-tools-4.4.0/src/mat/openmatcommand.cpp 
new/qtxdg-tools-4.5.0/src/mat/openmatcommand.cpp
--- old/qtxdg-tools-4.4.0/src/mat/openmatcommand.cpp    2026-04-20 
09:11:05.000000000 +0200
+++ new/qtxdg-tools-4.5.0/src/mat/openmatcommand.cpp    2026-11-03 
11:43:51.000000000 +0100
@@ -115,32 +115,41 @@
     bool isLocalFile = false;
     QString localFilename;
     for (const QString &urlString : std::as_const(files)) {
+        df = nullptr;
         const QUrl url(urlString);
         const QString scheme = url.scheme();
-        if (scheme.isEmpty()) {
+        if (!scheme.isEmpty()) {
+            if (url.scheme() == "file"_L1) {
+                localFilename = url.toLocalFile();
+                isLocalFile = true;
+            } else {
+                isLocalFile = false;
+            }
+        } else {
+            // No scheme present: treat as a direct filesystem path
             isLocalFile = true;
             localFilename = urlString;
-        } else if (scheme == "file"_L1) {
-            isLocalFile = true;
-            localFilename = QUrl(urlString).toLocalFile();
         }
 
         if (isLocalFile) {
             const QFileInfo f (localFilename);
             if (!f.exists()) {
                 std::cerr << qPrintable(u"Cannot access %1: No such file or 
directory\n"_s.arg(urlString));
-                break;
+                continue;
             } else {
                 const QMimeType mimeType = mimeDb.mimeTypeForFile(f);
                 df = appsDb.defaultApp(mimeType.name());
             }
         } else { // not a local file
-                       const QString contentType = 
u"x-scheme-handler/%1"_s.arg(scheme);
-                       df = appsDb.defaultApp(contentType);
+            const QString contentType = u"x-scheme-handler/%1"_s.arg(scheme);
+            df = appsDb.defaultApp(contentType);
         }
 
         if (df) { // default app found
-            if (!df->startDetached(isLocalFile ? localFilename : urlString)) {
+            if (!df->startDetached(urlString)) {
+                // Calling XdgDesktopFile::startDetached() with the user 
supplied url
+                // It's up to startDetached to choose the format of the 
urlString
+                // See https://github.com/lxqt/qtxdg-tools/issues/18
                 std::cerr << qPrintable(
                         u"Error while running the default application (%1) for 
%2\n"_s.arg(df->name(), urlString));
                 success = false;

Reply via email to