anchor.diff:      # disastrous, so here we nuke references to the Nix store
       # in Trolltech.conf.  A better solution would be to stop
       # Qt from doing this wackiness in the first place.
  -    trolltech_conf="''${XDG_CONFIG_HOME:?}/Trolltech.conf"
  +    trolltech_conf="''${XDG_CONFIG_HOME}/Trolltech.conf"
       if [ -e "$trolltech_conf" ]; then
           ${sed} -i "$trolltech_conf" -e '/nix\\store\|nix\/store/ d'
       fi
  
positive.code:     # xdg-desktop-settings generates this empty file but
      # it makes kbuildsyscoca5 fail silently. To fix this
      # remove that menu if it exists.
      rm -fv ''${XDG_CONFIG_HOME:?}/menus/applications-merged/xdg-desktop-menu-dummy.menu
  
      # Qt writes a weird ‘libraryPath’ line to
      # ~/.config/Trolltech.conf that causes the KDE plugin
  
negative.code:       ${activationScript}
  
        # Create default configurations if Plasma has never been started.
        kdeglobals="''${XDG_CONFIG_HOME}/kdeglobals"
        if ! [ -f "$kdeglobals" ]
        then
            kcminputrc="''${XDG_CONFIG_HOME}/kcminputrc"
            if ! [ -f "$kcminputrc" ]
            then
                cat ${kcminputrc} >"$kcminputrc"
  