Skip to content
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

vivaldi: support gtk4 #291033

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AsPulse
Copy link
Contributor

@AsPulse AsPulse commented Feb 24, 2024

Description of changes

Vivaldi cannot works on gtk4 even if give it to --gtk-version=4 because it cannot find gtk4.
Since some input method such as fcitx5 require text-input-v3, we need to run browsers on gtk4.

comparable:

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@@ -4,7 +4,7 @@
, freetype, fontconfig, libXft, libXrender, libxcb, expat
, libuuid
, libxml2
, glib, gtk3, pango, gdk-pixbuf, cairo, atk, at-spi2-atk, at-spi2-core
, glib, gtk3, gtk4, pango, gdk-pixbuf, cairo, atk, at-spi2-atk, at-spi2-core
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A similar issue exists with qt: currently vivadi is built against qt5 and doesn't work with qt6: #286522 (comment)

I am somewhat hesitant making vivaldy unconditionally depend on all of gtk3, gtk4, qt5, and qt6.

Maybe a better approach is to make both of these parameters?

, gtk ? gtk3
, qt ? qt5

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't depend on gtk2 directly and we probably can't depend on qt5 and qt6 at the same time anyway.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't depend on qt5 and qt6 at the same time anyway.

Yup, that's why I suggest making this parameter which can be either qt5 or qt6, but only one of the two.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this does seem to work for me locally:

#292148

Don't understand enough about nixpkgs to judge whether this is a good idea or not :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants