How to save in the documents directory on linux.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Dragon20C

I cant find any infomation on trying to save on to the users file system, I want to create a simple settings folder in the documents folder, but I cant figure out what the correct path is, for example this is the path I have for my system “/home/name/Documents/” but I dont know how to make it so name is global since name is different on every system and I seem cant access, what is user:// when trying to save it doesnt save anything.

:bust_in_silhouette: Reply From: Wakatta

var docs = OS.get_environment(“HOME”) + “/Documents”

Does this skip the user part of the file path and goes straight to the documents folder, I will try when I get home thanks!

Dragon20C | 2021-08-24 10:56