nixos/plasma5: fix shellcheck findings with enableStrictShellChecks enabled (#362341)

This commit is contained in:
misuzu 2024-12-14 12:50:52 +02:00 committed by GitHub
commit ad2bd1af95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,12 +39,12 @@ let
# on NixOS because the timestamp never changes. As a workaround, delete the
# icon cache at login and session activation.
# See also: http://lists-archives.org/kde-devel/26175-what-when-will-icon-cache-refresh.html
rm -fv $HOME/.cache/icon-cache.kcache
rm -fv "$HOME"/.cache/icon-cache.kcache
# 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
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
@ -61,7 +61,7 @@ let
# Remove the kbuildsyscoca5 cache. It will be regenerated
# immediately after. This is necessary for kbuildsyscoca5 to
# recognize that software that has been removed.
rm -fv $HOME/.cache/ksycoca*
rm -fv "$HOME"/.cache/ksycoca*
${pkgs.plasma5Packages.kservice}/bin/kbuildsycoca5
'';