0

I have a TitleAreaDialog

setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX | SWT.MIN);

I searched on web and found out that this could be caused by os:

why maximize and minimize option is missing in linux but working in windows

I have run the command

gsettings set org.gnome.desktop.wm.preferences button-layout :minimize,maximize,close

but the result was the same so it is leads me that either the set wasn't succeed or it is other problem.

For some windows the all 3 buttons are displayed but only for some only close is displayed. Can this be caused by an OS setup or it is other problem?

8
  • I think you'll be better off on Unix & Linux, AskUbuntu or a related page, since this isn't a question about programming, but rather about the operating system.
    – Baz
    Jun 17, 2014 at 13:44
  • Posting the code might be helpful.
    – dARKpRINCE
    Jun 17, 2014 at 14:17
  • @dARKpRINCE The necessary code is all there. If you need a minimal running example, look at the referenced question.
    – Baz
    Jun 17, 2014 at 14:24
  • Ah, now I see it. :D But anyways I can't help much since I dont have Linux System to test... :-/
    – dARKpRINCE
    Jun 17, 2014 at 14:29
  • I'm not sure it is only a OS related issue/configuration since for some other application it does have all 3 buttons.
    – L4zy
    Jun 17, 2014 at 14:54

1 Answer 1

0

For me (Gnome 3.22) worked:

gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu:minimize,maximize,close'

together with

gsettings set org.gnome.shell.extensions.classic-overrides button-layout 'appmenu:minimize,maximize,close'

Following elsewhere given answer doesn't work anymore: gsettings set org.gnome.shell.overrides button-layout close,minimize,maximize:

1
  • This doesn't really solve the problem. Developers don't have access to users' Gnome settings in general. The answer needs to be programmatic, not a system configuration setting.
    – BadZen
    May 31, 2020 at 21:30

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.