realmazharhussain / nautilus-code

Extension for Nautilus (GNOME Files) which adds right-click menu items to open current folder in code editors e.g. VSCode, GNOME Builder
79 stars 8 forks source link

context action does not handle whitespaces in path #8

Closed henicosa closed 1 year ago

henicosa commented 1 year ago

What happened?

I opened code-oss via the context menu in a folder with a whitespace in it's path.

/home/user/software projects/project1

code-oss opened the non existing files "projects" and "project1"

Expected behavior

Instead the folder project1 should have been opened in oss-code

To Reproduce

navigate to a folder with a whitespace in it's path and open the folder in oss-code via the context menu entry

Detailed Explaination (Optional)

Maybe the behavior is explained by this: https://linuxhint.com/deal-spaces-file-path-linux/ I think in your code the path must be surrounded by quotation marks when executing the command.

Program Version

0.4-2

Source

AUR

Environment