Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rolfpancake |
I’m trying to open a path with the systems filemanager. Therefore I use OS.shell_open(path)
and it works well (at least on Windows) for absolute strings like:
OS.shell_open("C:/Users/<username>/AppData/Roaming/Godot/app_userdata/...")
My problem is that I want to open up the user directory directly without knowing what the user name is. I tried something like:
OS.shell_open("%appdata%/Godot/app_userdata/...")
But it doesn’t work. Is there a possiblity to get the path to the user://
-directory? Is there a cross-platform way to achieve that?