www.cendio.com
Bug 7208 - GNOME on Ubuntu 18.04 misidentified as Unity
: GNOME on Ubuntu 18.04 misidentified as Unity
Status: CLOSED FIXED
: ThinLinc
Server OS
: 1.3.1
: PC Unknown
: P2 Normal
: 4.10.0
Assigned To:
:
:
:
: 6156
  Show dependency treegraph
 
Reported: 2018-06-29 15:26 by
Modified: 2018-10-05 13:51 (History)
Acceptance Criteria:
* The GNOME desktop on Ubuntu 18.04 should not be listed as Unity in the profile chooser. * The Unity desktop should always be available from a fitting profile when installed.


Attachments
Screenshot of the new profile (78.69 KB, image/png)
2018-10-03 16:06, Samuel Mannehed
Details


Note

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


Description From cendio 2018-06-29 15:26:31
Ubuntu has switched their default desktop from Unity to GNOME in Ubuntu 18.04.
Unfortunately they decided to keep the same xsession name ("ubuntu"). That
means that our default configuration thinks this is unity, and not GNOME.

Besides showing the wrong information in the profile chooser, this also hides
the real Unity and prevents it from being started.
------- Comment #1 From cendio 2018-10-02 16:38:52 -------
Installing Unity on Ubuntu 18.04 is quite simple:

> sudo apt install ubuntu-unity-desktop

The result is this:

cendio@ubuntu1804:~$ cat /usr/share/xsessions/ubuntu.desktop
[Desktop Entry]
Name=Ubuntu
Comment=This session logs you into Ubuntu
Exec=env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu
TryExec=gnome-shell
Type=Application
DesktopNames=ubuntu:GNOME
X-Ubuntu-Gettext-Domain=gnome-session-3.0
cendio@ubuntu1804:~$ cat /usr/share/xsessions/unity.desktop 
[Desktop Entry]
Name=Unity
Comment=This session logs you into Unity
Exec=/usr/lib/gnome-session/run-systemd-session unity-session.target
TryExec=unity
Type=Application
DesktopNames=Unity:Unity7:ubuntu
X-Ubuntu-Gettext-Domain=gnome-session-3.0
------- Comment #2 From cendio 2018-10-02 16:46:50 -------
My suggestion is that we have these profiles:

* GNOME (looks for gnome.desktop)
  - will not be found on ubuntu 18.04
  - will work on other distros

* Ubuntu (looks for ubuntu.desktop)
  - will choose the default ubuntu desktop environment (gnome OR unity)
  - will work on all ubuntu versions

* Unity (looks for unity.desktop)
  - for the people who wants to use unity on ubuntu 18.04
  - will not be found on older ubuntus

This would mean creating a new "Ubuntu"-profile and changing the xdg_session of
the Unity profile.
------- Comment #3 From cendio 2018-10-03 14:16:14 -------
(In reply to comment #2)
> * GNOME (looks for gnome.desktop)
>   - will not be found on ubuntu 18.04

That was incorrect, it is possible to do "apt install gnome-session" on ubuntu
18.04 and get a gnome.desktop.
------- Comment #7 From cendio 2018-10-03 16:06:04 -------
Created an attachment (id=893) [details]
Screenshot of the new profile
------- Comment #10 From cendio 2018-10-03 17:13:54 -------
Should be all done now.
------- Comment #11 From cendio 2018-10-05 13:51:22 -------
Nice. All three profiles are correctly separated and working well. Tested on
Ubuntu 16.04 and 18.04.

> * The GNOME desktop on Ubuntu 18.04 should not be listed as Unity in the profile chooser.

Works.

> * The Unity desktop should always be available from a fitting profile when installed.

It is. As "Unity" when it is its own thing, and "Ubuntu" when it is the default
Ubuntu desktop.