I have been writing about a simple example shell based on Mir: egmde. This shell is just the code needed to illustrate these articles and, maybe, inspire others to build on it but it is not intended to be a product.
At the end of the last article we could run egmde as a “desktop” and launch Wayland apps.
In this article we use the latest Mir 0.32 release to provide a desktop session from the greeter.
Preparation
The code in this article needs Mir 0.32 or later. At the time of writing this only exists in mir-team/release PPA.
Naturally, the code is likely to evolve, so you will find other branches, but this branch goes with this article. Assuming that you’ve MirAL installed as described above you can now build egmde as follows:
$ mkdir egmde/build
$ cd egmde/build
$ cmake ..
$ make
$ sudo make install
This will install egmde and a “.desktop” file that enables it as an option in the greeter.
You can now reboot and select “egmde” in the greeter when you log in again.
The code
Most of the changes since the last article are removing workarounds for Mir’s inability to use logind. The main things are:
Use Mir 0.32
Install a .desktop file:
$ cat /usr/share/wayland-sessions/egmde.desktop
[Desktop Entry]
Name=egmde
Comment=The example Mir server
Exec=egmde
Type=Application
18.04 + lightdm, so i just changed to gdm3? and it does load… so it’s probably something wrong with lightdm?
i have the same problem with unity8 session / mir 0.32 + lightdm (bounce back to login) but marius said it worked for him but with sddm?
In the first instance I’d suspect Mir. would you log a Mir issue as it shouldn’t matter what the DM is. (And if you’re trying DMs could you include which ones work.)
weird… changed back to lighdm and now the session started. so… the only difference is that now i restarted the pc and the first time when it didn’t load i just logged out. so maybe you actually need to reboot? (i followed how to from this thread, after installing the next instruction is to logout to greeter).
closing the issue for the moment