Ubuntu – Missing icons for headless Xfce session via VNC

13.04vncxfcexubuntu

I've set up a new server running a fresh installation of Ubuntu Server 13.04. I've installed xubuntu-desktop and tightvnc. My ~/.vnc/xstartup configuration file contains the following:

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
# /etc/X11/Xsession
startxfce4 &

The VNC server appears to running fine, and I am able to connect to port 5901 successfully using the TightVNC Java client.

My concern is that a lot of icons in the GUI are broken/missing, as shown in this screenshot:

screenshot

Am I missing some commands in my xstartup file?

Ideally, I would like to be able to have the GUI be the default Xubuntu session (with the Xubuntu theme, etc) and not a bare-bones Xfce session.


Update:

For reference, opening the XFCE appearance settings, it shows that the Greybird theme is selected and the icon set is elementary Xfce.

theme icons

Best Answer

I had the exact same issue and finally managed to resolve it. The weird thing was it is simply the order of these two lines in the configuration file.

# Starting X session must come before export statement
/etc/X11/Xsession

# This line comes second
export XKL_XMODMAP_DISABLE=1