Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flatpak/flatpak
base: main
Choose a base ref
...
head repository: mkhl/flatpak
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 4, 2022

  1. profile.d: Only add new directories to XDG_DATA_DIRS in fish

    Previously in a0505f5
    the profile script was modified to preserve XDG_DATA_DIRS.
    This had the side-effect of making the script not idempotent,
    adding duplicate entries for every installation every time it's sourced.
    
    On my current system  that results in this value:
    
        /home/mkhl/.local/share/flatpak/exports/share /var/lib/flatpak/exports/share /home/mkhl/.local/share/flatpak/exports/share /var/lib/flatpak/exports/share /usr/local/share /usr/share
    
    which in turn has the side-effect of the GNOME search settings showing two entries
    for every application installed via flatpak.
    
    This change makes the script check that an entry is new before adding it.
    It also uses `set -p` (short for `--prepend`) to add them.
    
    N.B.
    `set -p VAR val` is equivalent to `set VAR val $VAR`
    `$var[-1..1]` reverses the order of elements
    so after iterating the first element of `$installations`
    becomes the first element of `$XDG_DATA_DIRS`
    mkhl committed Dec 4, 2022
    Configuration menu
    Copy the full SHA
    a57a380 View commit details
    Browse the repository at this point in the history