diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c6b2f8..82dc190 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ Changelog for Show in File Manager ================================== -1.1.0 (2022-10-XX) +1.1.0 (2022-10-29) ------------------ - On WSL2, use a Linux file manager (if set) for WSL paths, and Windows Explorer for Windows paths. If no Linux file manager is installed, use @@ -69,4 +69,4 @@ Changelog for Show in File Manager 0.0.1 (2021-08-12) ------------------ - - Initial release. \ No newline at end of file + - Initial release. diff --git a/src/showinfm/showinfm.py b/src/showinfm/showinfm.py index 7b5eed1..f838653 100644 --- a/src/showinfm/showinfm.py +++ b/src/showinfm/showinfm.py @@ -309,9 +309,7 @@ def show_in_file_manager( # So open the parent instead. path = path.parent if uri: - uri = urllib.parse.urlunparse( - parse_result._replace(path=str(path)) - ) + uri = path.as_uri() if uri is None: path = tools.quote_path(path=path) directories.append(uri or str(path))