-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set GTK 4 decoration layout #5421
Conversation
/build-image --boot.iso |
Images built based on commit 57a7109:
Download the images from the bottom of the job status page. |
If I understand it correctly, its stored in That way it should really only influence the installation environment on the boot.iso and perhaps applications started by the Anaconda process on Live images. That I think should be safe and potentially even desirable in other cases, say for the network-connection-editor, if it switches to GTK4 or if we end up launching more GTK4 apps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks! :)
The current attempt to show only the close button in the external app windows (see org.gnome.desktop.wm.preferences.gschema.override, button-layout property) is not working anymore. Instead, add a "settings.ini" configuration file for GTK 4 in "/usr/share/anaconda/gtk-4.0" and add this path to the XDG_CONFIG_DIRS environment variable so it is used. For more details about how this file is used, see: https://docs.gtk.org/gtk4/class.Settings.html
57a7109
to
c6e72e6
Compare
Thanks for you review Martin.
Yes. I added more details to the commit description so it is clear how this work. Removing the "draft" tag, but I don't know if we should set the environment variable in |
/build-image --live |
Images built based on commit c6e72e6:
Download the images from the bottom of the job status page. |
/build-image --live |
Images built based on commit c6e72e6:
Download the images from the bottom of the job status page. |
/build-image --boot.iso --live --webui |
Images built based on commit c6e72e6:
Download the images from the bottom of the job status page. |
/build-image --live |
Images built based on commit c6e72e6:
Download the images from the bottom of the job status page. |
Hmm, that could be also a possibility, but I think I like it better how it is co-located with other GUI/display related things, so I suggest we keep it as is. We can always switch to Feel free to merge the PR. :) |
The current attempt to show only the close button in the external application windows (see org.gnome.desktop.wm.preferences.gschema.override, button-layout property) is not working.
Instead, add a configuration file for GTK 4.
After spending quite a lot of time trying to make
.gschema.override
files work I gave up and decided to follow this approach.I'm not sure if including this configuration file is acceptable or not.
Note that I had to set the environment variable
XDG_CONFIG_DIRS
(os.environ['XDG_CONFIG_DIRS'] = xdg_config_dirs
) instead of settings it inutil.startProgram(env_add=...)
. Otherwise, child processes, like Teclas, won't use the right paths.I wonder if
XDG_CONFIG_DIRS
should be set inaugmentEnv()
instead. Waiting for feedback:As a side note, I also tried to follow the same approach with
XDG_DATA_DIRS
, but it didn't fix the issues.