92

Unity and Unity 2D look very much alike, so how can new users easily find out whether they are running Unity or Unity 2D?

0

9 Answers 9

64

Note:

As of Ubuntu 12.10, Unity 2D is no longer developed and all systems use Unity 3D (with LLVMpipe for systems without hardware acceleration).


The easiest way I have found is to look at the launcher:

Subtlety in the design of the of the launcher popups - Unity 3D lives up to its name with a darker shadow "3D" effect whereas Unity 2D is lighter and has a "2D" flat effect.

Unity 3D enter image description here Unity 2D enter image description here

If you don't trust your eyes you can rely on the system to tell you, just look at the desktop session variable, open a terminal and type:

echo $DESKTOP_SESSION

If it echoes back ubuntu-2d that means you are using Unity 2D and ubuntu for Unity3D.

But if you want a bit more details (and that's a big if), here is an extended review:

Unity 3D

Unity 3D has several features that set it apart, that are the result of it's "3D" nature and the capabilities afforded to it that way:

  • The launcher items fold when there are too many windows open or excess items pinned to the launcher.
  • Also, the trash can icon in Unity 3D is based on your current icon theme, and thus looks transparent in the default setup (when empty).
  • The Panel and Dash change colour to match your wallpaper when the Dash is open, and the launcher is mildly translucent by default.
  • The Dash icon is black on white, with a transparent border, and rounded edges.
  • Unity 3D is a Compiz plugin and requires Compiz, which means your graphics card must have 3D support, and you cannot run it on another window manager; so if you are running anything but Compiz with Unity - you are definitely not running Unity 3D.
  • Unity 3D's icons have a nice gloss+glow to them, and transparent/translucent edges.
  • Unity 3D takes advantage of compositing fully even for quicklists and Launcher item tooltips.
  • Unity 3D's panel has a shadow.
  • Unity 3D has a fully 3D workspace switcher with smooth animations and an orange glow.

PLEASE NOTE:
These images present a slightly modified launcher, in that I have the Launcher set to "Edge Illumination Toggles" instead of the default "Backlight Always On".

Unity 3D's Launcher with folded icons

  • Unity 3D's Launcher with folded icons.

Unity 3D Trash Icon

  • Unity 3D's Trash Icon

Unity 2D:

There are several differences in Unity 2D from Unity 3D. One of them is that the launcher items do not ever fold.
Also note the following:

Notable differences in Unity 2D Notable differences in Unity 2D

  1. The Dash button is not translucent.
  2. Other buttons are flat icons, and not transparent/translucent with a glossy appearance as in Unity 2D.

Also of note:

  • The launcher and Dash are not transparent when not using a composting window manager such as Compiz Install compiz or Mutter Install mutter (for example). In the Default install, Metacity has compositing enabled.
  • Unity 2D can run in different Window Managers, unlike Unity 3D. If you run top or gnome-system-monitor, you will notice that Unity 2D also consists of separate processes for the Panel, Launcher, and Dash.
  • As noted by fossfreedom, Unity 2D does not currently take advantage of compositing for Launcher item tooltips and quicklists.
  • The Panel + Dash do not adapt to your wallpaper when the Dash is open.
  • The Panel has no shadow.
  • Unity 2D's workspace switcher has no glow, and has slow animations with no smoothness to them.
  • When there is an overflow of items on the Launcher, there is no folding. The launcher only scrolls.
3
  • 2
    You should try to distinguish between differences that will always be present (due to limitations of running without 3D accelaration) and differences that are simply a result of Unity 2D development lagging behind Unity 3D, since the latter differences will eventually disappear. Feb 17, 2012 at 22:00
  • @RyanThompson: that's rather difficult to do, really. I would like to word in in such a way, but it's hard to know what features are really just lagging behind unfortunately.
    – RolandiXor
    Feb 18, 2012 at 3:39
  • 3
    While I admire the patience the author showed in detailing all these little differences, and even inserting screenshots, I believe the "correct" answer to the question is much simpler: echo $DESKTOP_SESSION, as user komputes mentioned.
    – mivk
    Nov 22, 2012 at 14:40
51

Just found out how to tell which session you are using, via command.

Way to know which session is being used (lightdm only, so 11.10 or above):

tail -n 20 /var/log/lightdm/lightdm.log | grep "Starting session" | cut -d ' ' -f5

Otherwise:

echo $DESKTOP_SESSION

Hope that helps!

3
  • 1
    Both commands return "ubuntu" on a netbook running 12.04.1 i386 live off a USB. What does that mean?
    – SabreWolfy
    Feb 26, 2013 at 19:41
  • 1
    From this answer (askubuntu.com/a/80320/9081) below, "ubuntu" means 3D and "ubuntu-2d" means 2D.
    – SabreWolfy
    Feb 26, 2013 at 19:43
  • Mine says cairo-dock-unity :( Does that mean 3d? May 24, 2013 at 19:20
39

Just look at the desktop session variable:

echo $DESKTOP_SESSION

It is "ubuntu-2d" for Unity 2D and "ubuntu" for Unity.

1
36

Subtlety in the design of the of the launcher popups - Unity 3D lives up to its name with a darker shadow "3D" effect whereas Unity 2D is lighter and has a "2D" flat effect.

Unity 3D enter image description here Unity 2D enter image description here

14

Open Terminal and

ps -ef | grep compiz | grep $USER | grep -v grep

If you get anything, you are currently using Unity 3D.

(@Robert says to run ps x | grep [c]ompiz | grep $USER, which ends up [after my edit] with the same output, but I don't know the difference between the flags.)

0
11

In the terminal, type

echo $DESKTOP_SESSION

It will then tell you if you are running Unity 2D or 3D.

Also, by default their panels are very different, they should look like this:

Unity 2D (which has a coloured background)

enter image description here

Unity 3D (which has a transparent background)

Unity 3D

0
5

In Unity 3d, the dash icon is shaped differently than all of the other items in the launcher. So if the dash icon is the same shape as all of the other launcher icons, you are using Unity 2d. If the dash icon is different than all of of the other launcher icons, you are using Unity 3d.

5

You can run:

ps -ef | grep compiz | grep -v grep

If compiz is not running (nothing output) and you have the unity panels and such, you are using Unity2D.

No idea why people have to make it so complicated. Regular Unity (not 2D) needs compiz running to work, so just look for that....

1
  • Some variations on this: You can run ps x instead to only show processes by the current user. And since unity-2d has running processes that start with unity-2d (like unity-2d-panel), running the command in this answer but with unity-2d instead of compiz will show results if and only if unity-2d is running. Apr 23, 2012 at 0:57
1

I think the simplest answer is 'echo $DESKTOP_SESSION'. if it says ubuntu-2d, it's unity 2d, if it says ubuntu, it has unity 3d. And i resulted in finding out i have 3d. When you right click an application on the launcher on the left. it has a blur effect. Sorry but i really can't add an image.

So what is the right thing to do?

1.Use the terminal commandecho $DESKTOP_SESSION 2.Or Just look at pictures of Unity 2d and unity 3d and see diffirences.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .