|
|
|
@ -435,7 +435,7 @@ Status SetAuthentication (int count, IceListenObj *listenObjs,
|
|
|
|
|
TQString iceAuth = KGlobal::dirs()->findExe("iceauth");
|
|
|
|
|
if (iceAuth.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
qWarning("KSMServer: could not find iceauth");
|
|
|
|
|
qWarning("[KSMServer] could not find iceauth");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -465,7 +465,7 @@ void FreeAuthenticationData(int count, IceAuthDataEntry *authDataEntries)
|
|
|
|
|
TQString iceAuth = KGlobal::dirs()->findExe("iceauth");
|
|
|
|
|
if (iceAuth.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
qWarning("KSMServer: could not find iceauth");
|
|
|
|
|
qWarning("[KSMServer] could not find iceauth");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -479,7 +479,7 @@ void FreeAuthenticationData(int count, IceAuthDataEntry *authDataEntries)
|
|
|
|
|
|
|
|
|
|
static int Xio_ErrorHandler( Display * )
|
|
|
|
|
{
|
|
|
|
|
qWarning("ksmserver: Fatal IO error: client killed");
|
|
|
|
|
qWarning("[KSMServer] Fatal IO error: client killed");
|
|
|
|
|
|
|
|
|
|
// Don't do anything that might require the X connection
|
|
|
|
|
if (the_server)
|
|
|
|
@ -616,14 +616,14 @@ KSMServer::KSMServer( const TQString& windowManager, bool _only_local )
|
|
|
|
|
(SmPointer) this,
|
|
|
|
|
HostBasedAuthProc, 256, errormsg ) ) {
|
|
|
|
|
|
|
|
|
|
qWarning("KSMServer: could not register XSM protocol");
|
|
|
|
|
qWarning("[KSMServer] could not register XSM protocol");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!IceListenForConnections (&numTransports, &listenObjs,
|
|
|
|
|
256, errormsg))
|
|
|
|
|
{
|
|
|
|
|
qWarning("KSMServer: Error listening for connections: %s", errormsg);
|
|
|
|
|
qWarning("KSMServer: Aborting.");
|
|
|
|
|
qWarning("[KSMServer] Error listening for connections: %s", errormsg);
|
|
|
|
|
qWarning("[KSMServer] Aborting.");
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -642,8 +642,8 @@ KSMServer::KSMServer( const TQString& windowManager, bool _only_local )
|
|
|
|
|
f = ::fopen(fName.data(), "w+");
|
|
|
|
|
if (!f)
|
|
|
|
|
{
|
|
|
|
|
qWarning("KSMServer: can't open %s: %s", fName.data(), strerror(errno));
|
|
|
|
|
qWarning("KSMServer: Aborting.");
|
|
|
|
|
qWarning("[KSMServer] can't open %s: %s", fName.data(), strerror(errno));
|
|
|
|
|
qWarning("[KSMServer] Aborting.");
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|
char* session_manager = IceComposeNetworkIdList(numTransports, listenObjs);
|
|
|
|
@ -656,10 +656,10 @@ KSMServer::KSMServer( const TQString& windowManager, bool _only_local )
|
|
|
|
|
|
|
|
|
|
if (only_local) {
|
|
|
|
|
if (!SetAuthentication_local(numTransports, listenObjs))
|
|
|
|
|
qFatal("KSMSERVER: authentication setup failed.");
|
|
|
|
|
qFatal("[KSMServer] authentication setup failed.");
|
|
|
|
|
} else {
|
|
|
|
|
if (!SetAuthentication(numTransports, listenObjs, &authDataEntries))
|
|
|
|
|
qFatal("KSMSERVER: authentication setup failed.");
|
|
|
|
|
qFatal("[KSMServer] authentication setup failed.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IceAddConnectionWatch (KSMWatchProc, (IcePointer) this);
|
|
|
|
|