From 98acafb4b8b804497e3d2541c63f76b862b0b628 Mon Sep 17 00:00:00 2001 From: Jonas Bloch <128738169+Silzinc@users.noreply.github.com> Date: Mon, 23 Feb 2026 15:15:51 +0100 Subject: [PATCH] fix(notepad): decode path URI when saving/creating a file (#1805) --- quickshell/Modules/Notepad/Notepad.qml | 2 +- quickshell/Services/NotepadStorageService.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickshell/Modules/Notepad/Notepad.qml b/quickshell/Modules/Notepad/Notepad.qml index 9f1e2cb0..7215c164 100644 --- a/quickshell/Modules/Notepad/Notepad.qml +++ b/quickshell/Modules/Notepad/Notepad.qml @@ -282,7 +282,7 @@ Item { onFileSelected: path => { root.fileDialogOpen = false; - const cleanPath = path.toString().replace(/^file:\/\//, ''); + const cleanPath = decodeURI(path.toString().replace(/^file:\/\//, '')); const fileName = cleanPath.split('/').pop(); const fileUrl = "file://" + cleanPath; diff --git a/quickshell/Services/NotepadStorageService.qml b/quickshell/Services/NotepadStorageService.qml index 67a14366..fc70c0cc 100644 --- a/quickshell/Services/NotepadStorageService.qml +++ b/quickshell/Services/NotepadStorageService.qml @@ -358,7 +358,7 @@ Singleton { } function createEmptyFile(path, callback) { - var cleanPath = path.toString() + var cleanPath = decodeURI(path.toString()) if (!cleanPath.startsWith("/")) { cleanPath = baseDir + "/" + cleanPath