fix links to specifications.freedesktop.org

This commit is contained in:
Victor Duarte 2024-10-24 11:48:59 +02:00 committed by zvictor
parent a1071d0055
commit f2b58efde4
10 changed files with 14 additions and 14 deletions

View File

@ -64,7 +64,7 @@ To avoid costly file system access when locating icons, GTK, [as well as Qt](htt
### Packaging icon themes {#ssec-icon-theme-packaging} ### Packaging icon themes {#ssec-icon-theme-packaging}
Icon themes may inherit from other icon themes. The inheritance is specified using the `Inherits` key in the `index.theme` file distributed with the icon theme. According to the [icon theme specification](https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html), icons not provided by the theme are looked for in its parent icon themes. Therefore the parent themes should be installed as dependencies for a more complete experience regarding the icon sets used. Icon themes may inherit from other icon themes. The inheritance is specified using the `Inherits` key in the `index.theme` file distributed with the icon theme. According to the [icon theme specification](https://specifications.freedesktop.org/icon-theme-spec/latest), icons not provided by the theme are looked for in its parent icon themes. Therefore the parent themes should be installed as dependencies for a more complete experience regarding the icon sets used.
The package `hicolor-icon-theme` provides a setup hook which makes symbolic links for the parent themes into the directory `share/icons` of the current theme directory in the nix store, making sure they can be found at runtime. For that to work the packages providing parent icon themes should be listed as propagated build dependencies, together with `hicolor-icon-theme`. The package `hicolor-icon-theme` provides a setup hook which makes symbolic links for the parent themes into the directory `share/icons` of the current theme directory in the nix store, making sure they can be found at runtime. For that to work the packages providing parent icon themes should be listed as propagated build dependencies, together with `hicolor-icon-theme`.

View File

@ -10,7 +10,7 @@
default = true; default = true;
description = '' description = ''
Whether to install files to support the Whether to install files to support the
[XDG Autostart specification](https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html). [XDG Autostart specification](https://specifications.freedesktop.org/autostart-spec/latest).
''; '';
}; };
}; };

View File

@ -10,7 +10,7 @@
default = true; default = true;
description = '' description = ''
Whether to install files to support the Whether to install files to support the
[XDG Icon Theme specification](https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html). [XDG Icon Theme specification](https://specifications.freedesktop.org/icon-theme-spec/latest).
''; '';
}; };
xdg.icons.fallbackCursorThemes = lib.mkOption { xdg.icons.fallbackCursorThemes = lib.mkOption {

View File

@ -10,7 +10,7 @@
default = true; default = true;
description = '' description = ''
Whether to install files to support the Whether to install files to support the
[XDG Desktop Menu specification](https://specifications.freedesktop.org/menu-spec/menu-spec-latest.html). [XDG Desktop Menu specification](https://specifications.freedesktop.org/menu-spec/latest).
''; '';
}; };
}; };

View File

@ -17,8 +17,8 @@ in
default = true; default = true;
description = '' description = ''
Whether to install files to support the Whether to install files to support the
[XDG Shared MIME-info specification](https://specifications.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html) and the [XDG Shared MIME-info specification](https://specifications.freedesktop.org/shared-mime-info-spec/latest) and the
[XDG MIME Applications specification](https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html). [XDG MIME Applications specification](https://specifications.freedesktop.org/mime-apps-spec/latest).
''; '';
}; };
@ -32,7 +32,7 @@ in
description = '' description = ''
Adds associations between mimetypes and applications. See the Adds associations between mimetypes and applications. See the
[ [
specifications](https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html#associations) for more information. specifications](https://specifications.freedesktop.org/mime-apps-spec/latest/associations) for more information.
''; '';
}; };
@ -46,7 +46,7 @@ in
description = '' description = ''
Sets the default applications for given mimetypes. See the Sets the default applications for given mimetypes. See the
[ [
specifications](https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html#default) for more information. specifications](https://specifications.freedesktop.org/mime-apps-spec/latest/default) for more information.
''; '';
}; };
@ -60,7 +60,7 @@ in
description = '' description = ''
Removes associations between mimetypes and applications. See the Removes associations between mimetypes and applications. See the
[ [
specifications](https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html#associations) for more information. specifications](https://specifications.freedesktop.org/mime-apps-spec/latest/associations) for more information.
''; '';
}; };
}; };

View File

@ -97,7 +97,7 @@ let
# Following XDG spec [1], XDG_DATA_DIRS should default to "/usr/local/share:/usr/share". # Following XDG spec [1], XDG_DATA_DIRS should default to "/usr/local/share:/usr/share".
# In nix, it is commonly set without containing these values, so we add them as fallback. # In nix, it is commonly set without containing these values, so we add them as fallback.
# #
# [1] <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html> # [1] <https://specifications.freedesktop.org/basedir-spec/latest>
case ":$XDG_DATA_DIRS:" in case ":$XDG_DATA_DIRS:" in
*:/usr/local/share:*) ;; *:/usr/local/share:*) ;;
*) export XDG_DATA_DIRS="$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}/usr/local/share" ;; *) export XDG_DATA_DIRS="$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}/usr/local/share" ;;

View File

@ -67,7 +67,7 @@ let
# Following XDG spec [1], XDG_DATA_DIRS should default to "/usr/local/share:/usr/share". # Following XDG spec [1], XDG_DATA_DIRS should default to "/usr/local/share:/usr/share".
# In nix, it is commonly set without containing these values, so we add them as fallback. # In nix, it is commonly set without containing these values, so we add them as fallback.
# #
# [1] <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html> # [1] <https://specifications.freedesktop.org/basedir-spec/latest>
case ":$XDG_DATA_DIRS:" in case ":$XDG_DATA_DIRS:" in
*:/usr/local/share:*) ;; *:/usr/local/share:*) ;;
*) export XDG_DATA_DIRS="$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}/usr/local/share" ;; *) export XDG_DATA_DIRS="$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}/usr/local/share" ;;

View File

@ -3,7 +3,7 @@
# All possible values as defined by the spec, version 1.4. # All possible values as defined by the spec, version 1.4.
# Please keep in spec order for easier maintenance. # Please keep in spec order for easier maintenance.
# When adding a new value, don't forget to update the Version field below! # When adding a new value, don't forget to update the Version field below!
# See https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html # See https://specifications.freedesktop.org/desktop-entry-spec/latest
lib.makeOverridable ({ name # The name of the desktop file lib.makeOverridable ({ name # The name of the desktop file
, type ? "Application" , type ? "Application"
# version is hardcoded # version is hardcoded

View File

@ -37,7 +37,7 @@ convertIconTheme() {
local -ra scales=([1]="" [2]="@2") local -ra scales=([1]="" [2]="@2")
# Based loosely on the algorithm at: # Based loosely on the algorithm at:
# https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#icon_lookup # https://specifications.freedesktop.org/icon-theme-spec/latest/icon_lookup
# Assumes threshold = 2 for ease of implementation. # Assumes threshold = 2 for ease of implementation.
function findIcon() { function findIcon() {
local -r iconSize=$1 local -r iconSize=$1

View File

@ -26,7 +26,7 @@
let let
# Finds data files using the XDG Base Directory Specification # Finds data files using the XDG Base Directory Specification
# See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html # See https://specifications.freedesktop.org/basedir-spec/latest
find-xdg-data-files = writeScriptBin "find-xdg-data-files" '' find-xdg-data-files = writeScriptBin "find-xdg-data-files" ''
#!${bash}/bin/sh #!${bash}/bin/sh
IFS=: IFS=: