You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Default Project Path editor setting acts incorrectly if it ends in a trailing slash. This can happen if you manually enter or paste a path from elsewhere, so we should ensure both act identical by stripping the trailing slash when reading the setting if it's there.
With trailing slash. Notice how there's one extra folder component which isn't desired here.
Steps to reproduce
Set Default Project Path editor setting to a value that ends with a trailing slash. You can do this by manually entering the slash in the path (without using the Browse icon on the right).
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered:
I can help look into this if anyone can give me a pointer to where the default project path gets set. After looking through the code in the debugger, I think it has something to do with this block of code on line 586 in the editor_settings.cpp file:
But when I change the default path, the variable fs_dir_default_project_path just points to my system's default path I think, so I'm unsure of where the default path is getting set after I change it in the editor.
Tested versions
System information
Godot v4.3.stable - Fedora Linux 41 (KDE Plasma) - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 4090 (nvidia; 565.57.01) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)
Issue description
The Default Project Path editor setting acts incorrectly if it ends in a trailing slash. This can happen if you manually enter or paste a path from elsewhere, so we should ensure both act identical by stripping the trailing slash when reading the setting if it's there.
Default Project Path =
/home/hugo/Documents/Godot
No trailing slash.
Default Project Path =
/home/hugo/Documents/Godot/
With trailing slash. Notice how there's one extra folder component which isn't desired here.
Steps to reproduce
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: