如何彻底删除通过 wine 安装的 notepad++?

如何彻底删除通过 wine 安装的 notepad++?

wine6我在 Ubuntu 21.10 上运行

我使用命令安装了 notepad++ -

wine <package-name>.exe

现在我使用命令卸载它 -

wine uninstaller

然后我按照 Windows 对话框卸载它

现在/home/payel/.wine/drive_c/Program Files我删除了Notepad++

此外,目录中/home/payel/.wine/dosdevices/c:/Program Files不再有任何 Notepad++

以下是我的/home/payel/.local/share/applications目录的内容 -

mimeinfo.cache              wine-extension-gif.desktop  wine-extension-ini.desktop   wine-extension-msp.desktop  wine-extension-rtf.desktop  wine-extension-vbs.desktop
wine                        wine-extension-hlp.desktop  wine-extension-jfif.desktop  wine-extension-pdf.desktop  wine-extension-txt.desktop  wine-extension-wri.desktop
wine-extension-chm.desktop  wine-extension-htm.desktop  wine-extension-jpe.desktop   wine-extension-png.desktop  wine-extension-url.desktop  wine-extension-xml.desktop

这里我不明白哪一个是 Notepad++,如果有的话。

以下是我的/usr/share/applications目录的内容 -

apport-gtk.desktop                gnome-disk-image-writer.desktop      gnome-thunderbolt-panel.desktop       org.freedesktop.IBus.Panel.Emojier.desktop         org.gnome.Software.desktop
apturl.desktop                    gnome-display-panel.desktop          gnome-ubuntu-panel.desktop            org.freedesktop.IBus.Panel.Extension.Gtk3.desktop  org.gnome.Terminal.desktop
bluetooth-sendto.desktop          gnome-info-overview-panel.desktop    gnome-universal-access-panel.desktop  org.freedesktop.IBus.Setup.desktop                 org.gnome.tweaks.desktop
caffeine.desktop                  gnome-initial-setup.desktop          gnome-usage-panel.desktop             org.gnome.Calculator.desktop                       org.keepassxc.KeePassXC.desktop
caffeine-indicator.desktop        gnome-keyboard-panel.desktop         gnome-user-accounts-panel.desktop     org.gnome.Characters.desktop                       python3.9.desktop
defaults.list                     gnome-language-selector.desktop      gnome-wacom-panel.desktop             org.gnome.ChromeGnomeShell.desktop                 qemu.desktop
display-im6.q16.desktop           gnome-location-panel.desktop         gnome-wifi-panel.desktop              org.gnome.DejaDup.desktop                          rygel.desktop
evolution-calendar.desktop        gnome-lock-panel.desktop             gparted.desktop                       org.gnome.DiskUtility.desktop                      snap-handle-link.desktop
gcr-prompter.desktop              gnome-microphone-panel.desktop       hplj1020.desktop                      org.gnome.eog.desktop                              software-properties-drivers.desktop
gcr-viewer.desktop                gnome-mouse-panel.desktop            htop.desktop                          org.gnome.Evince.desktop                           software-properties-gtk.desktop
gdebi.desktop                     gnome-network-panel.desktop          ibus-setup-m17n.desktop               org.gnome.Evince-previewer.desktop                 software-properties-livepatch.desktop
geoclue-demo-agent.desktop        gnome-notifications-panel.desktop    ibus-setup-table.desktop              org.gnome.Evolution-alarm-notify.desktop           system-config-printer.desktop
gkbd-keyboard-display.desktop     gnome-online-accounts-panel.desktop  im-config.desktop                     org.gnome.Extensions.desktop                       timeshift-gtk.desktop
gnome-applications-panel.desktop  gnome-power-panel.desktop            info.desktop                          org.gnome.FileRoller.desktop                       torbrowser.desktop
gnome-background-panel.desktop    gnome-printers-panel.desktop         io.snapcraft.SessionAgent.desktop     org.gnome.font-viewer.desktop                      torbrowser-settings.desktop
gnome-bluetooth-panel.desktop     gnome-region-panel.desktop           laptop-mode-tools.desktop             org.gnome.gedit.desktop                            transmission-gtk.desktop
gnome-camera-panel.desktop        gnome-removable-media-panel.desktop  mimeinfo.cache                        org.gnome.Logs.desktop                             update-manager.desktop
gnome-color-panel.desktop         gnome-search-panel.desktop           mpv.desktop                           org.gnome.Nautilus.desktop                         vim.desktop
gnome-connectivity-panel.desktop  gnome-session-properties.desktop     nautilus-autorun-software.desktop     org.gnome.PowerStats.desktop                       virtualbox.desktop
gnome-control-center.desktop      gnome-sharing-panel.desktop          nm-applet.desktop                     org.gnome.Screenshot.desktop                       wine.desktop
gnome-datetime-panel.desktop      gnome-software-local-file.desktop    nm-connection-editor.desktop          org.gnome.seahorse.Application.desktop             xdg-desktop-portal-gtk.desktop
gnome-default-apps-panel.desktop  gnome-sound-panel.desktop            nvidia-settings.desktop               org.gnome.Shell.desktop                            yelp.desktop
gnome-diagnostics-panel.desktop   gnome-system-monitor.desktop         openjdk-11-java.desktop               org.gnome.Shell.Extensions.desktop
gnome-disk-image-mounter.desktop  gnome-system-monitor-kde.desktop     org.flameshot.Flameshot.desktop       org.gnome.Shell.PortalHelper.desktop

在这里我也找不到任何 Notepad++

我面临的问题是,在 Ubuntu 应用程序搜索中我仍然有 Notepad++ 的图标,单击它时会出现 Windows 错误对话框。

那么,如何从 Ubuntu 应用程序搜索中删除此 Notepad++ 图标?

这里我不想删除 wine 本身,我只想删除 Notepad++ 应用程序。

答案1

应用程序快捷方式通常位于文件中/usr/share/applications~/.local/share/applications作为.desktop文件。

如果您只想删除快捷方式,只需删除关联.desktop文件即可。

顺便说一句,文本编辑器不需要 wine!很多在 Ubuntu 上原生运行的优秀文本编辑器:gedit、sublime、emacs、vim、nano、atom... 列表很长。我鼓励您寻找原生软件,因为它将为您节省大量时间和精力。

相关内容