[keyboard] Improve debug-logging for writing X11 config
This commit is contained in:
parent
57da222c72
commit
cbc376a206
@ -249,6 +249,8 @@ SetKeyboardLayoutJob::writeVConsoleData( const QString& vconsoleConfPath, const
|
|||||||
bool
|
bool
|
||||||
SetKeyboardLayoutJob::writeX11Data( const QString& keyboardConfPath ) const
|
SetKeyboardLayoutJob::writeX11Data( const QString& keyboardConfPath ) const
|
||||||
{
|
{
|
||||||
|
cDebug() << "Writing X11 configuration to" << keyboardConfPath;
|
||||||
|
|
||||||
QFile file( keyboardConfPath );
|
QFile file( keyboardConfPath );
|
||||||
if ( !file.open( QIODevice::WriteOnly | QIODevice::Text ) )
|
if ( !file.open( QIODevice::WriteOnly | QIODevice::Text ) )
|
||||||
{
|
{
|
||||||
@ -298,8 +300,8 @@ SetKeyboardLayoutJob::writeX11Data( const QString& keyboardConfPath ) const
|
|||||||
|
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
cDebug() << "Written XkbLayout" << m_layout << "; XkbModel" << m_model << "; XkbVariant" << m_variant
|
cDebug() << Logger::SubEntry << "Written XkbLayout" << m_layout << "; XkbModel" << m_model << "; XkbVariant" << m_variant
|
||||||
<< "to X.org file" << keyboardConfPath;
|
<< "to X.org file" << keyboardConfPath << stream.status();
|
||||||
|
|
||||||
return ( stream.status() == QTextStream::Ok );
|
return ( stream.status() == QTextStream::Ok );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user