如何清除旧的 Openshot 文件?

如何清除旧的 Openshot 文件?

我想在之前已通过 apt、snap 和 flatpak 安装 Openshot 的机器上使用其最新的 Linux(64 位 AppImage)文件全新安装 Openshot。我已清除所有旧安装。我甚至清除了 flatpak。但是,我仍然在这台机器上找到了 Openshot 文件,并且其缩略图出现在 Ubuntu 22.04 应用程序网格中。

$ sudo apt list | grep openshot

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libopenshot-audio-dev/jammy 0.2.0+dfsg1-4 amd64
libopenshot-audio-doc/jammy,jammy 0.2.0+dfsg1-4 all
libopenshot-audio-test-sound/jammy 0.2.0+dfsg1-4 amd64
libopenshot-audio7/jammy 0.2.0+dfsg1-4 amd64
libopenshot-dev/jammy 0.2.5+dfsg1-6build2 amd64
libopenshot-doc/jammy,jammy 0.2.5+dfsg1-6build2 all
libopenshot19/jammy 0.2.5+dfsg1-6build2 amd64
openshot-qt-doc/jammy,jammy 2.5.1+dfsg1-2 all
openshot-qt/jammy,jammy 2.5.1+dfsg1-2 all
python3-openshot/jammy 0.2.5+dfsg1-6build2 amd64

$ sudo apt purge openshot
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'openshot' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libappstream-glib8 libmalcontent-0-0 libostree-1-1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ sudo apt purge openshot-qt
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'openshot-qt' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libappstream-glib8 libmalcontent-0-0 libostree-1-1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ dpkg -l | grep openshot

$ flatpak
bash: /usr/bin/flatpak: No such file or directory

然而,根据 Nautilus 的说法,该/var/lib/flatpak/app目录中有许多残留文件。

残留开射文件

此外,Openshot 缩略图继续存在于应用程序网格中

应用程序网格中的 openshot 缩略图

但文件夹~/.local/share/applications/usr/share/applications包含任何 openshot.desktop文件。

问题

  1. 我可以简单地删除该文件夹/var/lib/flatpak/app/org.openshot.OpenShot而不给机器造成任何问题吗?
  2. 由于我已经清除了 flatpak,我还能删除文件夹吗/var/lib/flatpak
  3. 另外,如何删除应用程序网格中的 Openshot 缩略图?

更新:

我发现有一个名为的文件org.openshot.OpenShot.desktop。它的路径是:

  • /var/lib/flatpak/app/org.openshot.OpenShot/x86_64/stable/a3e062afc67b6bcba4c61fffa4a9c7d4baab1fb0843f99b8f79e2497e15bc42e/export/share/applications/org.openshot.OpenShot.desktop
  • /var/lib/flatpak/exports/share/applications/org.openshot.OpenShot.desktop

此终端命令从应用程序网格中删除了 Openshot 缩略图:

sudo rm /var/lib/flatpak/exports/share/applications/org.openshot.OpenShot.desktop

答案1

  1. org.openshot.OpenShot为了从这台机器上清除所有旧的 Openshot 文件,我得出结论,必须删除所有与/相关的文件或文件夹。为了删除相关目录,我执行了sudo rm -r <dir-path>,为了删除相关文件,我执行了rm <file-path>。Nautilus 可用于搜索根目录以显示所有 openshot 文件的路径。

  2. 由于我已经清除了 flatpak,所以该文件夹/var/lib/flatpak也可能被删除。

  3. 此终端命令用于从应用程序网格中删除 Openshot 缩略图sudo rm /var/lib/flatpak/exports/share/applications/org.openshot.OpenShot.desktop

相关内容