I installed 18.04 on a new laptop the other day and I'm trying to get it in shape to replace an older one. I installed Sublime Text 3, and while it works it has obvious layout problems: enter image description here

The menus, again, work in that the little menu windows open up and the selections can be clicked, but clearly there's something basically wrong with the layout. The pop-down menus have no spacing around the edges, much as the main menu entries lack spacing.

I'm running the xfce4 desktop in an otherwise plain Ubuntu (i.e., not Xubuntu) installation, which is what I've been doing for many years now and which works fine on the older (16.04) laptop. I suspect that what's wrong (or missing) is some GTK setting or configuration, but I have not been able to figure out what's right on the old machine but wrong on the new one.

This is a dev build (3184) of Sublime 3, for what that's worth. Other applications seem to work without any weird menu layout problems.

edit — I've tried uninstalling the apt version and using snap as suggested in a comment, but that gets me nowhere. The snap install seems to work, and something ends up in /snap/sublime-text, but there is no apparent way to run it. In fact nothing I've read about how the whole snap facility is supposed to work has any apparent bearing on what actually happens on my system.

more info — Switching to a Unity session makes Sublime (and the few other things that were affected, like lxappearance) work normally. Thus I think the problem has to do with something about my xfce4 setup, so I'll look into that.

  • From command line you can run /snap/bin/sublime-text.subl to run the snap version. Chances are you don't have /snap/bin in your path. – Terrance Dec 13 '18 at 17:10
  • Well lots of snap documents say it "automatically" fixes the PATH but that does not seem to be borne out by actual trials. – Pointy Dec 13 '18 at 17:19
  • Probably fixes it when you either reboot, logout and log back in, or relaunch the terminal. – Terrance Dec 13 '18 at 17:19
  • Directly running /snap/bin/subl does nothing; no error is reported but nothing happens. The file is a symlink to /snap/bin/sublime-text.subl, which is in turn a link to /usr/bin/snap. – Pointy Dec 13 '18 at 17:22
  • 1
    If it is the apt version, try a different GTK theme. I have been using Xfce4 for years as well and I am using 18.04. My menus look fine, but if I change my Style to something like Lubuntu Dark Panel which I have installed as themes I can use, my menus look exactly the same as yours. – Terrance Dec 13 '18 at 17:33

The problem turned out to be a GTK theme issue. Apparently, though Ubuntu ships with lots and lots of themes to choose from, almost all of them don't work. From xfce4 you get to those via the "Appearance" setting tool. One of the themes that does work is "Adwaita", and as it's not offensive that's what I ended up with.

| improve this answer | |

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.