[Feature]: Associate Grayjay with youtube links #83
Labels
No labels
blocked: external
bug
documentation
feature
optimization
refactor
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kruziikrel13/NixOS#83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Summary
Youtube links should be opened in Grayjay
Motivation
Grayjay is my substitute for youtube. Therefore, it ought to handle youtube links!
Feature Details
No response
Checklist
I think this'll be something to do with mime.types
https://discourse.nixos.org/t/add-custom-xdg-mime-type/48493
Can be done by creating a custom mime type / package and running
update-mime-databaseAlternatively, can make it declarative in a package
https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/config/xdg/mime.nix
https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/sh/shared-mime-info/package.nix
Can create an xml package for it in
/usr/share/mime/packagesIn a package declaration this would be $out/usr/share/mime/packages/package.xml
An example of a valid mime xml spec can be found at https://wiki.archlinux.org/title/XDG_MIME_Applications#New_MIME_types
The type would use a glob search pattern of *youtube.com* or something similar
Once this is merged https://github.com/futo-org/Grayjay.Desktop/pull/913
I can just update the Grayjay Package with the fix, and use a url redirector plugin to implement this.