Bug 16898 - sddm-0.12.0-1.mga6 doesn't remember last session from previous sddm
Summary: sddm-0.12.0-1.mga6 doesn't remember last session from previous sddm
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Florian Hubold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-04 18:46 CEST by Marja Van Waes
Modified: 2015-10-18 17:31 CEST (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Marja Van Waes 2015-10-04 18:46:37 CEST
After updating to sddm-0.12.0-1.mga6, on two different systems SDDM defaults to a different DE than the last used one (IceWM on the one and Gnome on the other, which both weren't used in many months, instead of Plasma5 or maybe XFCE)

After doing 
  systemctl disable prefdm 
  systemctl enable sddm
on one of those laptops, the last used DE is correctly preselected again.

On both laptops /var/lib/sddm/state.conf contains:
  Session=/usr/share/xsessions/plasma.desktop

Both have in /etc/sddm.conf
  #RememberLastSession=
 #       If  this  flag is true, LastSession value will updated on every successfull login, if false last session value wont be updated.  Default
#       value is true.

and no additional setting about RememberLastSession
Comment 1 Marja Van Waes 2015-10-04 19:27:06 CEST
I now rebooted the second cauldron, which still uses prefdm, for the 2nd time since updating sddm.

The problem vanished, Plasma is preselected as it should.


I do not know why, in the first cauldron, the wrong DE was preselected on two reboots, before I switched from prefdm.service to sddm.service.
However, the additional problems I had there earlier today when sddm was started, may somehow have prevented /var/lib/sddm/state.conf from being updated.

I'll try to remember to check whether anything happens to 
/var/lib/sddm/state.conf when I update a third cauldron.

Summary: sddm-0.12.0-1.mga6 doesn't remember last session when called from prefdm.service => sddm-0.12.0-1.mga6 doesn't remember last session from previous sddm

Comment 2 Marja Van Waes 2015-10-12 10:29:39 CEST
(In reply to Marja van Waes from comment #1)

> 
> I'll try to remember to check whether anything happens to 
> /var/lib/sddm/state.conf when I update a third cauldron.

Nothing happened to it, before logging in after updating, it still had
-rw-r--r--  1 root root  271 Sep 22 07:40 state.conf
and the content of that file was:
===============================================================================
[Last]
# Name of the last logged-in user. This username will be preselected/shown when the login screen shows up
User=marja


# Name of the session file of the last session selected. This session will be preselected when the login screen shows up.
Session=xfce.desktop
==============================================================================

However, sddm defaulted to IceWM
Comment 3 Marja Van Waes 2015-10-12 10:35:05 CEST
Might be a dup of bug 16894, but if it is, then I don't understand what the underlying issue is
Comment 4 Florian Hubold 2015-10-18 17:18:34 CEST
Sorry but I cannot reproduce. /var/lib/sddm/state.conf here contains always the user and name of the most recently selected desktop session, and sddm will show the most recently used desktop session as preselected.

Will close, please reopen if it occurs again. In case it does, please also attach the output of

journalctl -ab|grep -i sddm

Status: NEW => RESOLVED
CC: (none) => doktor5000
Resolution: (none) => INVALID

Florian Hubold 2015-10-18 17:31:54 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=16894


Note You need to log in before you can comment on or make changes to this bug.