[system/kup] daemon: backupjob: make sure to convert our backup path into a url

Harald Sitter <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit b5cb7e4d9d111c34ee5d02f5b86a15c0cbc02a29 by Harald Sitter.
Committed on 10/08/2026 at 05:43.
Pushed by sitter into branch 'master'.

backupjob: make sure to convert our backup path into a url

otherwise plasmashell may trip over incorrect string->url conversion

BUG: 518494

M  +3    -1    daemon/backupjob.cpp

https://invent.kde.org/system/kup/-/commit/b5cb7e4d9d111c34ee5d02f5b86a15c0cbc02a29

diff --git a/daemon/backupjob.cpp b/daemon/backupjob.cpp
index 6744b0f..8467d73 100644
--- a/daemon/backupjob.cpp
+++ b/daemon/backupjob.cpp
@@ -17,6 +17,8 @@
 #include <QTimer>
 #include <utility>
 
+using namespace Qt::StringLiterals;
+
 BackupJob::BackupJob(BackupPlan &pBackupPlan, QString pDestinationPath, QString pLogFilePath, KupDaemon *pKupDaemon)
     : mBackupPlan(pBackupPlan)
     , mDestinationPath(std::move(pDestinationPath))
@@ -28,7 +30,7 @@ BackupJob::BackupJob(BackupPlan &pBackupPlan, QString pDestinationPath, QString
     mLogStream.setDevice(&mLogFile);
 
     // Magic property that tells the job tracker the destination of this job.
-    setProperty("destUrl", mDestinationPath);
+    setProperty("destUrl", "file://"_L1 + mDestinationPath);
 }
 
 void BackupJob::start()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.