diff --git a/pkgs/by-name/cl/clash-verge-rev/unwrapped.nix b/pkgs/by-name/cl/clash-verge-rev/unwrapped.nix index 0c289203e0db..97bac8b060f9 100644 --- a/pkgs/by-name/cl/clash-verge-rev/unwrapped.nix +++ b/pkgs/by-name/cl/clash-verge-rev/unwrapped.nix @@ -93,4 +93,10 @@ rustPlatform.buildRustPackage { openssl webkitgtk_4_1 ]; + + # make sure the .desktop file name does not contain whitespace, + # so that the service can register it as an auto-start item + postInstall = '' + mv $out/share/applications/Clash\ Verge.desktop $out/share/applications/clash-verge.desktop + ''; }