Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
sddm
0001-Do-not-truncate-XAUTHORITY-file-on-login.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Do-not-truncate-XAUTHORITY-file-on-login.patch of Package sddm
From 9aa15075efbe713ffd40bec4b5ee90957c0a5605 Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fabian@ritter-vogt.de> Date: Fri, 7 Jul 2017 14:01:17 +0200 Subject: [PATCH] Do not truncate XAUTHORITY file on login xauth gets used to edit the file, so do not truncate the file with QIODevice::WriteOnly before. --- src/daemon/XorgDisplayServer.cpp | 2 +- src/helper/UserSession.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: sddm-0.14.0/src/daemon/XorgDisplayServer.cpp =================================================================== --- sddm-0.14.0.orig/src/daemon/XorgDisplayServer.cpp +++ sddm-0.14.0/src/daemon/XorgDisplayServer.cpp @@ -92,7 +92,7 @@ namespace SDDM { // Touch file QFile file_handler(file); - file_handler.open(QIODevice::WriteOnly); + file_handler.open(QIODevice::Append); file_handler.close(); QString cmd = QStringLiteral("%1 -f %2 -q").arg(mainConfig.XDisplay.XauthPath.get()).arg(file); Index: sddm-0.14.0/src/helper/UserSession.cpp =================================================================== --- sddm-0.14.0.orig/src/helper/UserSession.cpp +++ sddm-0.14.0/src/helper/UserSession.cpp @@ -177,7 +177,7 @@ namespace SDDM { QDir().mkpath(finfo.absolutePath()); QFile file_handler(file); - file_handler.open(QIODevice::WriteOnly); + file_handler.open(QIODevice::Append); file_handler.close(); QString cmd = QStringLiteral("%1 -f %2 -q").arg(mainConfig.XDisplay.XauthPath.get()).arg(file);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor