Skip to content

Commit 4bdc2a1

Browse files
committed
wechat-uos: Fix icon missing on GNOME
1 parent 642aca4 commit 4bdc2a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/we/wechat-uos/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ buildFHSEnv {
210210
211211
substituteInPlace $out/share/applications/com.tencent.wechat.desktop \
212212
--replace-quiet 'Exec=/usr/bin/wechat' "Exec=$out/bin/wechat-uos --"
213+
214+
# See https://github.com/NixOS/nixpkgs/issues/413491
215+
sed -i \
216+
-e '/\[Desktop Entry\]/a\' \
217+
-e 'StartupWMClass=wechat' \
218+
$out/share/applications/com.tencent.wechat.desktop
213219
'';
214220
targetPkgs = pkgs: [ wechat-uos-env ];
215221

0 commit comments

Comments
 (0)