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