Expands shell like environment variables and tilde (~/ and ~user/ are both supported) in command.
| command |
Input string or null. |
| envp |
Addition environment variables to take into account. These variables have higher priority than the ones in the process's environment. |
|
null on error, else the string, which should be freed using g_free when no longer needed. |