mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
home/sioyek: improve xdg mimeApps configuration
This commit is contained in:
parent
2cada3b44e
commit
05e980d72a
1 changed files with 13 additions and 5 deletions
|
|
@ -3,6 +3,9 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.programs.sioyek;
|
||||
in
|
||||
{
|
||||
programs.sioyek = {
|
||||
bindings = {
|
||||
|
|
@ -28,10 +31,15 @@
|
|||
config.should_launch_new_window = "1";
|
||||
};
|
||||
|
||||
xdg.mimeApps = lib.mkIf config.programs.sioyek.enable {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/pdf" = [ "sioyek.desktop" ];
|
||||
xdg.mimeApps =
|
||||
let
|
||||
associations = {
|
||||
"application/pdf" = [ "sioyek.desktop" ];
|
||||
};
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue