Fixed ~/ expansion, turns out it was our shell carrying it all along
This commit is contained in:
@@ -27,7 +27,7 @@ std::string ShellService::getHomePath()
|
|||||||
{
|
{
|
||||||
char* home = getenv("HOME");
|
char* home = getenv("HOME");
|
||||||
if (home && *home) {
|
if (home && *home) {
|
||||||
return std::string(home);
|
return std::string(home) + std::string("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback: try to get home directory from passwd if HOME is not set
|
// Fallback: try to get home directory from passwd if HOME is not set
|
||||||
|
|||||||
Reference in New Issue
Block a user