Pantheon is the default desktop environment for the elementary OS (http://elementary.io/). However, you can also use it with Ubuntu 18.04 / WSL.

Comparing to Xfce4, Pantheon is sluggish with its default settings due to its gala window manager; gala tries to use 3D effects for its window related animations but unfortunately WSL and X410 currently cannot accommodate its attempts to use 3D graphic hardware acceleration. However, you can still adjust its configuration and make it useable with X410.

STEP 1 Install Pantheon

The official Ubuntu repositories don’t include Pantheon desktop. You need to add a PPA maintained by the Pantheon developers (https://launchpad.net/~elementary-os) and install it from there.

sudo add-apt-repository ppa:elementary-os/daily
sudo apt update

sudo apt install elementary-desktop

STEP 2 Remove unused and unsupported UI component packages

When the Pantheon desktop package is installed, it also adds various components that are unsupported or unnecessary in WSL. They only delay the startup time and consume additional memory. You can remove those components by executing the following command:

sudo apt purge gnome-screensaver \
switchboard-plug-power switchboard-plug-bluetooth switchboard-plug-networking \
wingpanel-indicator-bluetooth wingpanel-indicator-network

STEP 3 Launch Pantheon

export DISPLAY=127.0.0.1:0.0; gala --x11& io.elementary.cerbere&

When you first click the top left ‘Applications‘ menu, there will be a significant delay (1+ minutes). It seems the delay comes from the Pantheon desktop trying to update its application list by browsing through the folders (if you know a way to speed up this, please let us know). However, once the application list is populated, there will be only minimal delays. You should also turn off the window animations in order to further minimize the delays: [ Applications ] » [ System Settings ] » [ Universal Access ] » ‘Animations’

If you’re using a HiDPI screen and want to scale the desktop, you can use the GDK_SCALE environment variable as the Pantheon desktop is based on GTK+ 3.

export DISPLAY=127.0.0.1:0.0; export GDK_SCALE=2; gala --x11& io.elementary.cerbere&

If you want to create a taskbar shortcut for launching the Pantheon desktop, please check the following post:

Pin a Linux GUI App to Start or Taskbar
http://token2shell.com/howto/x410/pin-linux-gui-app-to-start-or-taskbar/


Please note when you install the Pantheon desktop, it sets the system wide default theme for GTK+ 3 to "elementary". So if you change the mode for X410 to Windowed Apps and start launching individual apps, you’ll get the "elementary" theme. But it seems there are compatibility issues when it’s used without the Pantheon desktop; a thick black frame is shown for some app windows.

If you’re seeing such black frame, you can change the system wide default theme by editing the ‘/etc/gtk-3.0/settings.ini’ file, or create a local settings file (~/.config/gtk-3.0/settings.ini) with a different theme.

~/.config/gtk-3.0/settings.ini
[Settings]
gtk-theme-name = Default