Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
sddm-kcm6
0001-Support-default.session-symlink.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Support-default.session-symlink.patch of Package sddm-kcm6
From 2c4bf2d4c0be461fb9125de867543a1d89468fdd Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fabian@ritter-vogt.de> Date: Tue, 11 Jul 2017 13:13:13 +0200 Subject: [PATCH] Support default.session symlink Display it under a different name, otherwise it is indistinguishable from a normal session. Use it as default when the combobox is disabled. --- src/sessionmodel.cpp | 6 ++++++ src/ui/Advanced.qml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/sessionmodel.cpp b/src/sessionmodel.cpp index 249340b..586002d 100644 --- a/src/sessionmodel.cpp +++ b/src/sessionmodel.cpp @@ -96,6 +96,12 @@ void SessionModel::loadDir(const QString &path, SessionType type) isHidden = line.mid(7).toLower() == QLatin1String("true"); } } + + if (session == QLatin1String( "default.desktop" )) { + si->name = tr("(System Default)"); + isHidden = false; + } + if (!isHidden) { // add to sessions list d->sessions.push_back(si); diff --git a/src/ui/Advanced.qml b/src/ui/Advanced.qml index 5f78ca6..635a099 100644 --- a/src/ui/Advanced.qml +++ b/src/ui/Advanced.qml @@ -38,7 +38,7 @@ Kirigami.Page { kcm.sddmSettings.session = autologinSession.currentValue } else { kcm.sddmSettings.user = "" - kcm.sddmSettings.session = "" + kcm.sddmSettings.session = "default.desktop" } // Deliberately imperative because we only want the message -- 2.47.0
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