Fixed input server start fallback
After failing to start the input server by signature, the fallback didn't append the input server name to the servers directory returned by find_directory().
This commit is contained in:
parent
16ca035b2b
commit
d5df784299
|
@ -2373,10 +2373,11 @@ Desktop::_LaunchInputServer()
|
||||||
// Could not load input_server by signature, try well-known location
|
// Could not load input_server by signature, try well-known location
|
||||||
|
|
||||||
BEntry entry;
|
BEntry entry;
|
||||||
BPath systemServersDir;
|
BPath inputServerPath;
|
||||||
if (find_directory(B_SYSTEM_SERVERS_DIRECTORY, &systemServersDir) == B_OK)
|
if (find_directory(B_SYSTEM_SERVERS_DIRECTORY, &inputServerPath) == B_OK
|
||||||
entry.SetTo(systemServersDir.Path());
|
&& inputServerPath.Append("input_server") == B_OK) {
|
||||||
else
|
entry.SetTo(inputServerPath.Path());
|
||||||
|
} else
|
||||||
entry.SetTo("/system/servers/input_server");
|
entry.SetTo("/system/servers/input_server");
|
||||||
entry_ref ref;
|
entry_ref ref;
|
||||||
status_t entryStatus = entry.GetRef(&ref);
|
status_t entryStatus = entry.GetRef(&ref);
|
||||||
|
|
Loading…
Reference in New Issue