godotengine / godotengine/godot-docs

Class OS shell open globalized path unnecessary?

Open
#4,201 1 comment 0 reactions 0 assignees View on GitHub
area:class reference bug
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:** 3.2.3

**Issue description:**
I don't get what is supposed to mean:

> Use ProjectSettings.globalize_path to convert a res:// or user:// path into a system path for use with this method.

Both print the exact same path on both Windows and Android:
```
print("user dir: ", OS.get_user_data_dir())
print("globalized user dir: ", ProjectSettings.globalize_path(OS.get_user_data_dir()))
```
Same is true here:
```
print("system dir pictures: ", OS.get_system_dir(6))
print("globalized system dir pictures: ", ProjectSettings.globalize_path(OS.get_system_dir(6)))
```

**URL to the documentation page:**
https://docs.godotengine.org/en/stable/classes/class_os.html#class-os-method-shell-open

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.