[Feature]: Associate Grayjay with youtube links #83

Open
opened 2025-12-01 10:02:14 +10:00 by Ghost · 3 comments
Ghost commented 2025-12-01 10:02:14 +10:00 (Migrated from codeberg.org)

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 have checked this is not already implemented.
  • I have thought about the scope of this feature.
### 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 - [x] I have checked this is not already implemented. - [x] I have thought about the scope of this feature.
Owner

I think this'll be something to do with mime.types

I think this'll be something to do with mime.types
kruziikrel13 added this to the (deleted) project 2026-05-26 16:26:02 +10:00
kruziikrel13 added this to the v0.2.0 milestone 2026-05-27 14:45:21 +10:00
kruziikrel13 removed their assignment 2026-06-01 15:52:03 +10:00
kruziikrel13 removed their assignment 2026-06-01 15:52:16 +10:00
Owner

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-database

Alternatively, 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/packages
In 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

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-database` Alternatively, 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/packages` _In 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
Owner

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kruziikrel13/NixOS#83
No description provided.