Bug 7208 - GNOME on Ubuntu 18.04 misidentified as Unity
Summary: GNOME on Ubuntu 18.04 misidentified as Unity
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server OS (show other bugs)
Version: 1.3.1
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.10.0
Assignee: Samuel Mannehed
URL:
Keywords: ossman_tester, relnotes
Depends on:
Blocks: 6156
  Show dependency treegraph
 
Reported: 2018-06-29 15:26 CEST by Pierre Ossman
Modified: 2018-10-05 13:51 CEST (History)
2 users (show)

See Also:
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 CEST, Samuel Mannehed
Details

Description Pierre Ossman cendio 2018-06-29 15:26:31 CEST
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 Samuel Mannehed cendio 2018-10-02 16:38:52 CEST
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 Samuel Mannehed cendio 2018-10-02 16:46:50 CEST
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 Samuel Mannehed cendio 2018-10-03 14:16:14 CEST
(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 Samuel Mannehed cendio 2018-10-03 16:06:04 CEST
Created attachment 893 [details]
Screenshot of the new profile
Comment 10 Samuel Mannehed cendio 2018-10-03 17:13:54 CEST
Should be all done now.
Comment 11 Pierre Ossman cendio 2018-10-05 13:51:22 CEST
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.

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