1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-06 10:34:09 +00:00

fixed indentation

This commit is contained in:
Bryan Roe
2019-06-24 16:09:12 -07:00
parent f629d47896
commit 7237586206
2 changed files with 7 additions and 10 deletions

View File

@@ -108,7 +108,7 @@ function Toaster()
{
retVal.consoleUid = require('user-sessions').consoleUid();
retVal.xinfo = require('monitor-info').getXInfo(retVal.consoleUid);
retVal.username = require('user-sessions').getUsername(retVal.consoleUid);
retVal.username = require('user-sessions').getUsername(retVal.consoleUid);
}
catch (xxe)
{
@@ -175,17 +175,14 @@ function Toaster()
}
});
}
else {
else
{
util = findPath('kdialog');
if (util)
{
{
// use KDIALOG
var xdg = require('user-sessions').findEnv(retVal.consoleUid, 'XDG_RUNTIME_DIR');
if(xdg==null)
{
xdg = '/tmp/runtime-' + retVal.username;
}
if (!retVal.xinfo || !retVal.xinfo.display || !retVal.xinfo.xauthority)
var xdg = require('user-sessions').findEnv(retVal.consoleUid, 'XDG_RUNTIME_DIR'); if (xdg == null) { xdg = ''; }
if (!retVal.xinfo || !retVal.xinfo.display || !retVal.xinfo.xauthority)
{
retVal._rej('Internal Error');
return (retVal);