I use Centos 7 with gnome. Gnome classic doesn't support the superkey search anymore and I'd like to move to gnome.

  • ~/.vnc/xstartup already uses gnome instead of gnome-classic:
if [ -e `/usr/bin/gnome-session --session=gnome`  -o -e /usr/bin/startkde ]; then
    vncserver -kill $DISPLAY

Nevertheless, the environment I see in the VNC client window is gnome-classic.

The environment used by default with a real monitor is gnome not gnome-classic.

  • How can I change the environment?
  • What do you have in ~/.vnc/xstartup now? Both GNOME and GNOME classic are just different invocations of gnome-shell. – jsbillings Jun 19 at 23:44
  • I have what is in my question. gnome-session, no gnome-shell. – Alexis Jun 19 at 23:45

If you look in /usr/share/xsessions/gnome-classic.desktop

You will see:

Exec=env GNOME_SHELL_SESSION_MODE=classic gnome-session --session gnome-classic

Try that in your startup file. You can probably just do an export GNOME_SHELL_SESSION_MODE=classic before the if block, and change the gnome-session line to uses gnome-classic.

| improve this answer | |
  • I want to see gnome not the classic that is already displayed even tho xstartup is configured for gnome. Moreover the gnome-session is already present in xstartup (check the piece of code in my question) – Alexis Jun 20 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.