パッケージを削除するときに/etc/xdg/autostart/のファイルを削除する必要がありますか?

パッケージを削除するときに/etc/xdg/autostart/のファイルを削除する必要がありますか?

次のメッセージが見つかりましたsudo journalctl --since today | tail -n 3000。パッケージが削除されたら、自動起動項目も削除できませんか?

パッケージが削除された場合は、通常、自動起動エントリを削除するのが良い習慣です(削除プロセス中にユーザーにメッセージを表示したり、同様のコマンドを実行したときに削除)sudo apt-get autoremove。また、実行可能ファイルがExecのコマンドと同じ方法で命名/別名/リンクされている場合、実行可能ファイルは自動的に起動されます。

現在行われていない場合、これらのアイテムを自動的に削除する正しい方法は何ですか?この問題はどこに存在できますか?今、私はこれをDebian12 / KDEの下に移動しています。sudo mv /etc/xdg/autostart/xbindkeys.desktop ~/DisabledAutostarts_defunct/xbindkeys.desktop解決策としてこれが良いことを願っています。

systemd-xdg-autostart-generator[1712]: Exec binary 'xbindkeys_autostart' does not exist: No such file or directory
systemd-xdg-autostart-generator[1712]: /etc/xdg/autostart/xbindkeys.desktop: not generating unit, executable specified in Exec= does not exist.
systemd-xdg-autostart-generator[1712]: Exec binary '/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1' does not exist: No such file or directory
systemd-xdg-autostart-generator[1712]: /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop: not generating unit, executable specified in Exec= does not exist.
systemd-xdg-autostart-generator[1712]: Exec binary 'gsettings-data-convert' does not exist: No such file or directory
systemd-xdg-autostart-generator[1712]: /etc/xdg/autostart/gsettings-data-convert.desktop: not generating unit, executable specified in Exec= does not exist.
systemd-xdg-autostart-generator[1712]: Exec binary 'start-pulseaudio-x11' does not exist: No such file or directory
systemd-xdg-autostart-generator[1712]: /etc/xdg/autostart/pulseaudio.desktop: not generating unit, executable specified in Exec= does not exist.
systemd-xdg-autostart-generator[1712]: Exec binary 'kmixctrl' does not exist: No such file or directory
systemd-xdg-autostart-generator[1712]: /etc/xdg/autostart/restore_kmix_volumes.desktop: not generating unit, executable specified in Exec= does not exist.
systemd-xdg-autostart-generator[1712]: Exec binary 'kmix' does not exist: No such file or directory
systemd-xdg-autostart-generator[1712]: /etc/xdg/autostart/kmix_autostart.desktop: not generating unit, executable specified in Exec= does not exist.
systemd-xdg-autostart-generator[1712]: Exec binary 'usbguard-applet-qt' does not exist: No such file or directory
systemd-xdg-autostart-generator[1712]: /etc/xdg/autostart/usbguard-applet-qt.desktop: not generating unit, executable specified in Exec= does not exist.

自動起動を引き起こすファイルは、アプリケーションの実行中に一部の設定のみを提供する/ etc /設定ファイルとは異なります。上記の問題に加えて、同じソフトウェアの将来のバージョンを再インストールすると問題になる可能性があります。たとえば、そのフォルダに別の名前の追加エントリが作成され、2 回起動できるためです。今問題があります。

ベストアンサー1

これらのファイルは構成ファイルと見なされ、パッケージを削除するのではなく、パッケージをクリーンアップしたときにのみ削除されます。

apt list '~c'

削除されたが削除されていないパッケージが一覧表示されます(dpkgまだインストールされていると見なされますが、インストールされていない一部のパッケージを含めることができます)。

sudo apt purge '~c'

/etcその項目が削除され、そのプロファイルも消えたことを確認できます。

私はこの状況が悪いことに同意します。私の考えに最適な解決策は次のとおりです。デスクトップアプリケーションの自動起動仕様自動起動ファイルを下の場所にドラッグアンドドロップできます(/usr通常のファイルをインストールできるのと同じ方法)。これにより、パッケージはデフォルトの自動起動ファイルをその場所に送信でき、他の設定されていないコンテンツと共に自動的に削除されます。.desktop/usr/share/applications

おすすめ記事