0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MacOS Montereyでローマ字入力プロセスをkillallする方法

Posted at

結論

以下のコマンドでローマ字入力プロセスを止めて再起動させることができます。

killall -HUP JapaneseIM-RomajiTyping

なお、かな入力を使っている方は以下のコマンドで再起動できます。

killall -HUP JapaneseIM-KanaTyping

上記に至った経緯

コマンドラインから日本語入力時も半角で数字を入力できるようにする設定をしたあと、適用するためにローマ字入力のプロセスを再起動しようとしましたがエラーが発生しkillできないという事象が発生しました。

設定を変更するコマンド

defaults write com.apple.inputmethod.Kotoeri JIMPrefFullWidthNumeralCharactersKey -float 0

プロセスを再起動させるコマンド

killall -HUP JapaneseIM
# => No matching processes belonging to you were found

JapaneseIM というプロセスは存在せず、コマンドに失敗してしまいます。

ps axo command, | grep "[J]apaneseIM"
# => /System/Library/Input Methods/JapaneseIM-RomajiTyping.app/Contents/PlugIns/JapaneseIM-RomajiTyping.appex/Contents/MacOS/JapaneseIM-RomajiTyping -AppleLanguages ("ja-JP")

どうやら JapaneseIM から JapaneseIM-RomajiTyping に名前が変更されたようです。

JapaneseIM-RomajiTyping に変更してコマンド実行すると成功し、無事設定を反映させることができました。

killall -HUP JapaneseIM-RomajiTyping

参考にした記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?