At login, suddenly can't choose Marco Window Manager, only DWM ?! [solved]

Hello everybody,
I have a strange Problem:
Last week I tried to update libimobiledevice to transfer data from my IPhone and after some time it worked (for Ubuntu 16.04 there is only version 1.2 and I needed 1.2.1).
BUT it seems, that I messed up something, because the next time I booted my PC, after Login I found myself in DWM window manager.
I was a bit confused, because I haven’t used it in a while, logged out and wanted to choose the standard Mate Window Manager, but the drop down menu only shows DWM as an option.

SO, I tried reinstalling Marco, hoping this could fix it, but it didn’t.
Now I ran out of ideas and I don’t find a solution online…

Has anyone more ideas on how to approach this?
Thank you in advance!

EDIT: Just noticed, that /usr/share/xsessions/dwm.desktop was the only file there… How does the Marco one look?

EDIT2: Marked as solved in title

On my Ubuntu MATE 16.04 LTS I have:

$ ls /usr/share/xsessions/
mate.desktop

$ dpkg -S /usr/share/xsessions/
mate-session-manager: /usr/share/xsessions

$ dpkg -L mate-session-manager | grep  /usr/share/xsessions/
/usr/share/xsessions/mate.desktop

So you may need to reinstall mate-session-manager package with:

sudo apt-get install --reinstall mate-session-manager
1 Like

Awesome, that fixed it!
I reinstalled so many packages… obviously not the right ones.
Thank you very much! :slight_smile:

EDIT:
I stilled missed some packages, namely the mate-desktop-environment-* ones. I could not install them because of a broken package error. I tried some things and found out, that my gvfs-* packages had some issues. So I did:

sudo apt-get remove gvfs-*
sudo apt-get install gvfs-*
sudo apt-get update
sudo apt-get upgrade
sudo apt get install mate-desktop-environment-*

since the usual

sudo apt-get install --reinstall gvfs-*

did not work.

1 Like