Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

ibus-engines.mozc: add desktop file for gnome-control-center (#313335)

gnome-control-center needs this file to open the mozc settings.
This solution was copied from ubuntu.

authored by

Shogo Takata and committed by
GitHub
03ec1bbe 9f46451c

+14
+7
pkgs/tools/inputmethods/ibus-engines/ibus-mozc/default.nix
··· 68 68 69 69 unzip bazel-bin/unix/mozc.zip -x "tmp/*" -d / 70 70 71 + # create a desktop file for gnome-control-center 72 + # copied from ubuntu 73 + mkdir -p $out/share/applications 74 + cp ${./ibus-setup-mozc-jp.desktop} $out/share/applications/ibus-setup-mozc-jp.desktop 75 + substituteInPlace $out/share/applications/ibus-setup-mozc-jp.desktop \ 76 + --replace-fail "@mozc@" "$out" 77 + 71 78 runHook postInstall 72 79 ''; 73 80
+7
pkgs/tools/inputmethods/ibus-engines/ibus-mozc/ibus-setup-mozc-jp.desktop
··· 1 + [Desktop Entry] 2 + Name=Mozc Setup 3 + Exec=@mozc@/lib/mozc/mozc_tool --mode=config_dialog 4 + Type=Application 5 + StartupNotify=true 6 + NoDisplay=true 7 + X-Desktop-File-Install-Version=0.27