How can I get the current user path in Linux? It can be either with the GTK+ framework APIs, or plain C++.
Assuming you mean the current directory of the process:
getcwd().g_get_current_dir().If you want to get home directory use getenv("HOME")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With