Enable minimize and maximize buttons for all users

Hello

I have installed Rocky w/s 9.3 on a number of computers in a lab. Users are logging with ldap accounts. I have successfully installed the gnome-extensions and create the file /etc/dconf/db/local.d/00-extensions and place the extensions.
Now I want to have the minimize/maximize button setup for all the users. I have installed the gnome-tweaks but is only enabled for the logged user.
How can I setup globally for all users, so as the buttons be available for all of them?

Thank you in advance

Maria

Good afternoon, generally if you want to make an extension globally accessible it should be placed in /usr/share/

In this case I presume would be /usr/share/gnome-shell/extensions

It is possible to create machine-wide settings by making a file in /etc/dconf/db/local.d with the correct data. For example.

% vi /etc/dconf/db/local.d/00-extension
[/org/gnome/shell]
enabled-extensions=['dash-to-dock@micxgx.gmail.com', 'multi-monitors-add-on@spin83', 'impatience@gfxmonk.net']
% dconf update

This would make these three extensions enabled by default, globally. A user would then need to use gnome-tweaks to disable the extension, which then makes a disabled-extensions=... key in their user dconf db.

Add another dconf config file. The configuration is in the following namespace:

$ dconf read /org/gnome/desktop/wm/preferences/button-layout
'appmenu:minimize,maximize,close'

Thank you Ritov ,
I created the file /etc/dconf/db/local.d/00-minmaxbutton with the following content

[org/gnome/desktop/wm/preferences]
button-layout=‘:minimize,maximize,close’

and seems to working

Thank you
M.