1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 21:33:38 +00:00

1. Updated user-sessions.consoleUid() to not try to parse 'from'. It just returns the uid of any user listed in 'who'. This fixes Fedora, but should still work with all the other distros.

2. Updated, so if it can't find an Xauthority, it propagates an error, asking if the user configured DM to use X. This makes it, so on something like Fedora, it pops up a more intuitive error, that the user can fix, rather than just a generic, XOpenDisplay() error.
This commit is contained in:
Bryan Roe
2019-01-30 23:17:39 -08:00
parent 60df8bbd56
commit 52ff7ba04c
2 changed files with 20 additions and 1 deletions

View File

@@ -692,7 +692,7 @@ function UserSessions()
tokens = lines[i].split(' ');
for (j = 1; j < tokens.length; ++j)
{
if (tokens[j].length > 0 && (tokens[j] == checkstr || tokens[j] == ('(' + checkstr + ')')))
if (tokens[j].length > 0)
{
return (parseInt(this._users()[tokens[0]]));
}