You can use the following function to get current user name is Linux. I have tested this on Ubuntu and CentOS flavors but it should also work with other flavors without any issues.
Continue reading “How to Get Current User Name in Qt/C++ (for Linux)”