0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

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.
This commit is contained in:
Shogo Takata 2024-05-23 01:02:26 +09:00 committed by GitHub
parent 9f46451cf3
commit 03ec1bbeab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View file

@ -68,6 +68,13 @@ buildBazelPackage rec {
unzip bazel-bin/unix/mozc.zip -x "tmp/*" -d /
# create a desktop file for gnome-control-center
# copied from ubuntu
mkdir -p $out/share/applications
cp ${./ibus-setup-mozc-jp.desktop} $out/share/applications/ibus-setup-mozc-jp.desktop
substituteInPlace $out/share/applications/ibus-setup-mozc-jp.desktop \
--replace-fail "@mozc@" "$out"
runHook postInstall
'';

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Name=Mozc Setup
Exec=@mozc@/lib/mozc/mozc_tool --mode=config_dialog
Type=Application
StartupNotify=true
NoDisplay=true
X-Desktop-File-Install-Version=0.27