Function

Idedup_projects_dir

Declaration

char*
ide_dup_projects_dir (
  void
)

Description

Like ide_get_projects_dir() but may be called from threads.

Gets the directory to store projects within.

First, this checks GSettings for a directory. If that directory exists, it is returned.

If not, it then checks for the non-translated name “Projects” in the users home directory. If it exists, that is returned.

If that does not exist, and a GSetting path existed, but was non-existant that is returned.

If the GSetting was empty, the translated name “Projects” is returned.

Return value

Type: char*

A string containing the projects dir.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.