Ubuntu – How to restart Unity 2D

unityunity-2d

As per How do I restart Unity? But I guess unity --replace would start the 3D variant.

Best Answer

unity-2d has some of its own processes and some processes that derive from unity (unity-2d uses unity libraries).

You can find these processes with:

ps aux | grep unity

This yields these (see the right-most tokens in the above command output):

  • unity-2d-launcher
  • unity-2d-panel
  • /usr/lib/unity-place-applications/unity-applications-daemon
  • /usr/lib/unity-place-files/unity-files-daemon

Each of these can be individually stopped (and each will automatically restart) with:

sudo killall <process>

So to kill them all, list them all in the above command:

sudo killall unity-2d-launcher unity-2d-panel \
/usr/lib/unity-place-applications/unity-applications-daemon \
/usr/lib/unity-place-files/unity-files-daemon
Related Question