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:
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
|
Loading…
Add table
Add a link
Reference in a new issue