I used the default Lubuntu LXDE theme (not sure that's even the right word -- the look, feel, panel position and options, etc.?) then recently changed it with gnome-tweaks to a different GTK3 theme that solved some issues.

The problem is that my VNC session always still brings up the old LXDE theme and I'd like them to match.

So is there a way for my VNC .vnc/xstartup file to pull whatever info it needs from the file the desktop uses? (I don't know if that's xinitrc or something else?)

I've trie a few different things to replace what I think is the offending line in my .vnc/xstartup:

/usr/bin/lxsession -s Lubuntu -e LXDE &

I replaced with

exec /etc/X11/xinit/xinitrc

And it provided me with a new environment, a teal background, and a cute rat in the wallpaper, but that's not what I was looking for. Any hints on what to actually use?

Thank you in advance for any help!

  • LXDE is GTK+2 based, and isn't really aware of GTK+3 themes. LXDE never got upgraded to GTK+3 which is why Lubuntu switched to LXQt (using Qt5). I think what you're expecting to work is flawed as LXDE doesn't use GTK3 themes; you changed only themes used by GTK3 programs. LXDE will use still use GTK+2 (or GTK2) settings. If you want both to match, you must use themes which perfectly match for both GTK+2/GTK2 (used by LXDE & older GTK+ programs) & GTK+3/GTK3 (used by more modern GTK programs) – guiverc Nov 30 at 6:20
  • Why on earth was this marked down? But @guiverc, thank you for the note -- yes, I actually have all that you said in mind, but my question is HOW: what startup program, etc., do I use in vnc to ensure it boots up with the same parameters? I am no longer using LXDE in my main display:0. But I don't know where to find the settings or how to use them within the .vnc/xstartup file. Does that make sense? – user1149499 Dec 1 at 1:53

Your Answer

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

Browse other questions tagged or ask your own question.