-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
awesome: add optional gtk3 support #61161
Conversation
It would be nice if this could be backported to 19.03 as it's backwards-compatible. Thanks. |
@GrahamcOfBorg build awesome |
Add optional gtk3 support to Awesome so that the `beautiful.gtk` module can be used. The `beautiful.gtk` uses `lgi` to obtain Gtk via gobject-introspect: return require('lgi').Gtk Since the current build does not include the typelib files needed, the above call fails. It turns out that both `gtk3` and `atk` (Accessibility toolkit) are needed, so this commit adds them as optional build inputs. Setting `gtk3Support` to `true` e.g. in an overlay will make `beautiful.gtk` work at the cost of an increased closure size (currently 99.6M vs 223.4M). Fixes #60538
@jtojnar @rasendubi I have fixed the conflicts that occurred while waiting for the merge. Rebuilding caused no issues at all. Hopefully this might go in soon if you agree. Thanks. |
Thank you! We could also add awesome with gtk3 support to |
Thanks @rasendubi, any chance at all this can land in the 19.03 branch?
Cool, if I get time I can whip up an PR for that. |
@stefano-m yeah, I don't see why not. Just submit a PR against |
Motivation for this change
Add optional gtk3 support to Awesome so that the
beautiful.gtk
module can beused.
The
beautiful.gtk
useslgi
to obtain Gtk via gobject-introspect:Since the current build does not include the typelib files needed, the above
call fails.
It turns out that both
gtk3
andatk
(Accessibility toolkit) are needed, sothis commit adds them as optional build inputs.
Setting
gtk3Support
totrue
e.g. in an overlay will makebeautiful.gtk
work at the cost of an increased closure size (currently 99.6M vs 223.4M).
Fixes #60538
Things done
nix.useSandbox
on NixOS, or optionsandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)