我想要在之前通过 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 缩略图继续存在于“应用程序”网格中
但文件夹~/.local/share/applications
中/usr/share/applications
不包含任何 openshot.desktop
文件。
问题:
- 我可以直接删除该文件夹
/var/lib/flatpak/app/org.openshot.OpenShot
而不会对机器造成任何问题吗? - 既然我已经清除了 flatpak,我什至可以删除文件夹吗
/var/lib/flatpak
? - 另外,如何删除应用程序网格中的 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
为了从这台机器上清除所有旧的 Openshot 文件,我得出的结论是,所有与/to 相关的文件或文件夹都
org.openshot.OpenShot
必须删除。要删除我执行的相关目录sudo rm -r <dir-path>
并删除我执行的相关文件rm <file-path>
。Nautilus 可用于搜索根目录以显示所有 openshot 文件的路径。由于我已经清除了 flatpak,因此该文件夹
/var/lib/flatpak
也可以被删除。从应用程序网格中删除 Openshot 缩略图的终端命令是
sudo rm /var/lib/flatpak/exports/share/applications/org.openshot.OpenShot.desktop