diff options
| author | Sofi <sofi+git@mailbox.org> | 2022-12-16 13:53:28 +0100 |
|---|---|---|
| committer | Sofi <sofi+git@mailbox.org> | 2022-12-16 14:37:45 +0100 |
| commit | 1ddba4aadbe9670d7329ef4470f347a75b98e955 (patch) | |
| tree | a7b011fbe924e8ed46cf7d73789bad869c51fdc8 /pkgs/development/python-modules/rangehttpserver | |
| parent | fbcb61bd7eb19914cbd88789c3586a63ff46b72b (diff) | |
chromium: fix web app linking
Currently Chromium will generate its Web App shortcuts by pointing to
the current unwrapped executable of itself. This leads to all Web App
shortcuts failing to launch as it is not launched trough nixpkgs's
wrapper.
This fix will set the `CHROME_WRAPPER` environment variable to point
to a valid wrapper script, allowing chromium based browsers to generate
valid `.desktop` files.
NOTE: As these files are only set once by the browser inside of
`~/.local/share/applications` and not updated, this fix will only work
for generating new shortcuts, and only work as long as the relevant
binary is available in `$PATH` for that user.
INFO: While generic sounding, `CHROME_WRAPPER` is only invoked inside of
`web_app_shortcut_linux.cc`[^1], so it should only affect the generation
of web app shortcut files.
INFO: There is a similar patch for google-chrome itself in nixpkgs.[^2]
[^1]: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/shell_integration_linux.cc;l=405;drc=b8f43a4e55639b03f76eccc6f6b951f2d06b8833
[^2]: https://github.com/NixOS/nixpkgs/pull/155430/
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
