mate-session starts instead when i3 was selected on login screen

Bug #1910279 reported by Norbert
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MATE Desktop
New
Unknown
arctica-greeter (Ubuntu)
Confirmed
Undecided
Unassigned
mate-session-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Steps to reproduce:

1. Have Ubuntu MATE 20.10 installed
2. Install i3 with `sudo apt-get install i3*`
3. Reboot machine
4. Select i3 (or i3 with debug) on login screen

Expected results:

* i3 starts

Actual results:

* MATE starts instead of i3

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: mate-session-manager 1.24.1-1
ProcVersionSignature: Ubuntu 5.8.0-25.26-generic 5.8.14
Uname: Linux 5.8.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: MATE
Date: Tue Jan 5 22:27:29 2021
InstallationDate: Installed on 2020-10-23 (74 days ago)
InstallationMedia: Ubuntu-MATE 20.10 "Groovy Gorilla" - Release amd64 (20201022)
SourcePackage: mate-session-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Norbert (nrbrtx) wrote :

It seems that ~/.dmrc

$ cat .dmrc
[Desktop]
Session=i3-with-shmlog

is ignored or not written, or something similar.

So the workaround is a bit horrible and MATE-destructive:

```
sudo apt autopurge mate-session-manager
```

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

What does this command output:

sudo grep Session /var/lib/AccountsService/users/$USER

Revision history for this message
Norbert (nrbrtx) wrote :

After entering to "i3" it says:

```
$ sudo grep Session /var/lib/AccountsService/users/$USER
Session=mate
XSession=mate
```

So there is something wrong with new arctica greeter.

Revision history for this message
Norbert (nrbrtx) wrote :

After removing mate-session-manager it shows the following:

```
$ sudo grep Session /var/lib/AccountsService/users/$USER
Session=mate
XSession=i3
```

Norbert (nrbrtx)
Changed in arctica-greeter (Ubuntu):
status: New → Confirmed
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

And I think that "XSession" is what counts.

Does it help if you switch to lightdm-gtk-greeter (but keep mate-session-manager)?

Revision history for this message
Norbert (nrbrtx) wrote :

Yes, it works with `lightdm-gtk-greeter`.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Ok, then we seem to have defined the problem: There is a need to make arctica-greeter play well with accountsservice.

Norbert (nrbrtx)
no longer affects: lightdm (Ubuntu)
Changed in mate-desktop:
status: Unknown → New
Norbert (nrbrtx)
tags: added: hirsute
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mate-session-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Sai Vinoba (saivinob) wrote :

This bug exists in hirsute daily-builds as well.

It may seem strange or coincidental but installing 'fluxbox' helps. With fluxbox installed on the system, we can choose and login to i3. Thereafter, we can login to any session meaning .dmrc is written to correctly. If I uninstall fluxbox, I can only login to i3 if the last login was already i3 (i.e., .dmrc or AccountService file are not overwritten). Once I login to MATE session, thereafter I cannot login to i3.

I tried this with openbox first but it did not make any difference. Didn't check other WMs. Seems fluxbox brings in some conf changes that helps i3 to write to .dmrc/AccountService files.

Norbert (nrbrtx)
tags: removed: groovy
Revision history for this message
Norbert (nrbrtx) wrote :

Still happens in 21.10.

tags: added: impish jammy
no longer affects: ubuntu-mate
Changed in mate-session-manager (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Norbert (nrbrtx) wrote :

Bug still exists in latest Ubuntu MATE 22.04 LTS.

tags: removed: hirsute
Revision history for this message
Norbert (nrbrtx) wrote :

Bug still exists in latest Ubuntu MATE 22.04 LTS.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.