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-22 16:02:26 +00:00
committed by GitHub
parent 9f46451cf3
commit 03ec1bbeab
2 changed files with 14 additions and 0 deletions
@@ -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
'';
@@ -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