com.apple.launchd からスタートアップ項目を削除する

com.apple.launchd からスタートアップ項目を削除する

数か月前にプログラムをインストールしましたが、スタートアップ オプションがあり、それをインストールしました。その後、プログラムを削除することにしましたが、アンインストールした後もスタートアップ スクリプトまたは項目が残っているようです。数秒ごとに起動しようとします。

このアイテムを削除するにはどうすればいいですか?

コンソールからはこちら


$ com.apple.launchd[1] (com.jft.PdaNetMac[24476]): Exited with exit code: 1
$ com.apple.launchd[1] (com.jft.PdaNetMac): Throttling respawn: Will start in 10 second

答え1

これらは確かに launchd が探す標準的な場所です。ホーム ディレクトリの場所とルートの場所を必ず確認してください。

ファイルが見つからない場合は、ターミナルで次の操作を試すこともできます。

$ launchctl remove com.jft.PdaNetMac

すべての launchd ジョブのリストを表示するには:

$ launchctl list
PID Status  Label
78960   -   0x7fe25c1052f0.anonymous.launchctl
78923   -   0x7fe25c008e40.anonymous.pppd
78922   -   0x7fe25c007e50.anonymous.pppd
78841   -   0x7fe25ae0c470.anonymous.Google Chrome H
78704   -   0x7fe25c006c90.anonymous.Google Chrome H
84037   -   0x7fe25ac258c0.anonymous.dbfseventsd
31909   -   0x7fe25c0081c0.anonymous.Google Chrome H
25351   -   [0x0-0x1e51e5].com.skype.skype
...

詳細については、man launchdを参照してくださいman launchctl

答え2

~/Library/LaunchDaemons、~/Library/LaunchAgents、/Library/LaunchDaemons、/Library/LaunchAgents/、/System/Library/LaunchDaemons/、および /System/Library/LaunchAgents の場所を確認してください。これらのディレクトリのいずれかに com.jft.PdaNetMac という名前のファイルがある可能性が高くなります。それをゴミ箱に移動して再起動してください。

答え3

PdaNetMac現在、次のようなアンインストール スクリプトが付属しています。

sudo rm /System/Library/LaunchDaemons/com.jft.PdaNetMac.plist 
sudo rm -R /System/Library/Extensions/PdaNetDrv.kext 
sudo rm -R /Applications/PdaNetMac.app 
sudo rm ~/PdaNetUninstall.sh 
echo "PdaNet has been uninstalled, please reboot your computer" 

したがって、launchd プロパティ リストは にあります/System/Library/LaunchDaemons/。カーネル拡張も削除する必要がある可能性があります。

関連情報