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

Upstream extension-search-path.patch #2753

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Pandapip1
Copy link

Upstreams the extension search path patch from NixOS/nixpkgs#188086

@Pandapip1 Pandapip1 requested a review from a team as a code owner March 11, 2024 17:39
Copy link
Contributor

@PF4Public PF4Public left a comment

Choose a reason for hiding this comment

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

Same considerations as voiced in nix issue tracker.

Besides, this patch does not apply.

@networkException
Copy link
Member

I avoided the nixpkgs issue largely because of its slightly convoluted history.

Given that I both maintain ungoogled-chromium and it's nixpkgs packaging (CC @emilylange), I'll try to take a closer look (can't promise when) at declarative extensions and whether ungoogled-chromium should put patches for it into its patchset

@Pandapip1
Copy link
Author

Besides, this patch does not apply.

One of the stated goals of the ungoogled-chromium project is:

ungoogled-chromium features tweaks to enhance privacy, control, and transparency. However, almost all of these features must be manually activated or enabled. For more details, see Feature Overview.

As this is a patch that enhances control, I'd argue this patch does apply.

@networkException
Copy link
Member

Besides, this patch does not apply.

that is a technical observation:

WARNING: Patch failed validation: extra/ungoogled-chromium/extension-search-path.patch
DEBUG: Specifically, file "chrome/common/chrome_paths.cc" failed validation: Line '#include "base/files/file_path.h"' does not match context line '#include "base/files/file_util.h"' from patch
DEBUG: PATCH_BIN env variable is not set
DEBUG: Output of "patch --dry-run" for this patch on this file:
checking file chrome/common/chrome_paths.cc
Hunk #1 FAILED at 4.
Hunk #2 FAILED at 511.
2 out of 2 hunks FAILED

@Pandapip1
Copy link
Author

Sorry! Misinterpreted your statement.

@Pandapip1
Copy link
Author

The patch should apply now.

@PF4Public
Copy link
Contributor

I'll try to take a closer look (can't promise when) at declarative extensions and whether ungoogled-chromium should put patches for it into its patchset

@networkException Have you had a chance to glance through? What's your opinion?

@networkException
Copy link
Member

with my nixpkgs chromium maintainer hat on I don't see the patch as useful here or in packaging as there are ways not needing modifications which I would prefer anyways

@bendlas
Copy link

bendlas commented Apr 28, 2024

I would love to see this in UC. It's not just for including extensions from chromestore, but also for developing your own.

  1. Carrying this patch in nixpkgs doesn't make sense, because it enables a substantial use case, which would then differ from other distros.
  2. While there are workarounds, like managing the user's extention dir, this is substantially different and valuable in it's own right, because a system level extension also can't be messed up by a user messing up their browser profile.

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

Successfully merging this pull request may close these issues.

None yet

4 participants