当前位置: 首页>>技术教程>>正文


应用程序不会出现在Dash中(14.04)

, ,

问题描述

我跑14.04

14.04,unity-dash,ubuntu

我已经阅读了这个问题,其答案与网上其他答案大致相同,并不适用于我。

All Applications Disappear in the Dash

我可以毫无问题地搜索所有其他文件,但是当我尝试搜索应用程序时,我无法这样做。

我不确定在哪里进行故障排除 – 我已经确保安装了unity-lens-applications以及unity-scope-master

我还能做些什么来解决这个问题吗?老实说,我不想从终端启动我的所有应用程序。

在newly-created用户帐户上,会显示应用程序。但是,我想在登录时修复此问题。


建议修复

  • 在alt + F2中运行unity这将返回与上面相同的错误,减去过滤器。

  • sudo apt-get install zeitgeist zeitgeist-core它已经安装并且是最新的

其他无效的建议:


根据要求,ls /usr /share /applications /的输出:

activity-log-manager.desktop
apport-gtk.desktop
apturl.desktop
bamf-2.index
baobab.desktop
bluetooth-sendto.desktop
bluetooth-wizard.desktop
brasero.desktop
brasero-nautilus.desktop
caffeine.desktop
ccsm.desktop
checkbox-gui.desktop
cheese.desktop
compiz.desktop
credentials-preferences.desktop
dconf-editor.desktop
debian-uxterm.desktop
debian-xterm.desktop
defaults.list
deja-dup.desktop
deja-dup-preferences.desktop
deluge.desktop
display.im6.desktop
docky.desktop
dropbox.desktop
emerald-theme-manager.desktop
empathy.desktop
eog.desktop
evince.desktop
evince-previewer.desktop
evolution-data-server-uoa.desktop
extras-calendar-indicator.desktop
extras-pushbullet-indicator.desktop
extras-variety.desktop
FacebookMessengerfacebookcom.desktop
file-roller.desktop
firefox.desktop
gcalctool.desktop
gconf-editor.desktop
gcr-prompter.desktop
gcr-viewer.desktop
geary.desktop
gedit.desktop
gimp.desktop
gkbd-keyboard-display.desktop
Gmailmailgooglecom.desktop
gnome-activity-log-manager-panel.desktop
gnome-background-panel.desktop
gnome-bluetooth-panel.desktop
gnome-color-panel.desktop
gnome-contacts.desktop
gnome-control-center.desktop
gnome-datetime-panel.desktop
gnome-deja-dup-panel.desktop
gnome-disk-image-mounter.desktop
gnome-disk-image-writer.desktop
gnome-disks.desktop
gnome-display-panel.desktop
gnome-font-viewer.desktop
gnome-info-panel.desktop
gnome-keyboard-panel.desktop
gnome-mouse-panel.desktop
gnome-network-panel.desktop
gnome-online-accounts-panel.desktop
gnome-power-panel.desktop
gnome-power-statistics.desktop
gnome-printers-panel.desktop
gnome-region-panel.desktop
gnome-screen-panel.desktop
gnome-screenshot.desktop
gnome-sound-panel.desktop
gnome-sudoku.desktop
gnome-system-log.desktop
gnome-system-monitor.desktop
gnome-system-monitor-kde.desktop
gnome-terminal.desktop
gnome-universal-access-panel.desktop
gnome-user-accounts-panel.desktop
gnome-user-share-properties.desktop
gnome-wacom-panel.desktop
gnomine.desktop
GoogleCalendargooglecom.desktop
google-chrome.desktop
GooglePlusplusgooglecom.desktop
gucharmap.desktop
hplj1020.desktop
ibus-setup-bopomofo.desktop
ibus-setup.desktop
ibus-setup-pinyin.desktop
im-config.desktop
landscape-client-settings.desktop
language-selector.desktop
libreoffice-calc.desktop
libreoffice-draw.desktop
libreoffice-impress.desktop
libreoffice-math.desktop
libreoffice-startcenter.desktop
libreoffice-writer.desktop
libreoffice-xsltfilter.desktop
mahjongg.desktop
mimeinfo.cache
mono-runtime-common.desktop
mono-runtime-terminal.desktop
mount-archive.desktop
nautilus-autorun-software.desktop
nautilus-classic.desktop
nautilus-connect-server.desktop
nautilus.desktop
nautilus-folder-handler.desktop
nautilus-home.desktop
nm-applet.desktop
nm-connection-editor.desktop
nvidia-settings.desktop
onboard.desktop
onboard-settings.desktop
orca.desktop
popcorn-time.desktop
python2.7.desktop
python3.4.desktop
Redditredditcom.desktop
remmina.desktop
rhythmbox.desktop
rhythmbox-device.desktop
root-system-bin.desktop
screenlets-manager.desktop
seahorse.desktop
session-properties.desktop
shotwell.desktop
shotwell-viewer.desktop
shutter.desktop
signon-ui-browser-process.desktop
simple-scan.desktop
software-properties-drivers.desktop
software-properties-gnome.desktop
software-properties-gtk.desktop
sol.desktop
spotify.desktop
sublime_text.desktop
system-config-printer.desktop
tekka.desktop
thunderbird.desktop
totem.desktop
transmission-gtk.desktop
Twittertwittercom.desktop
typecatcher.desktop
ubuntu-amazon-default.desktop
ubuntu-software-center.desktop
unity-activity-log-manager-panel.desktop
unity-appearance-panel.desktop
unity-bluetooth-panel.desktop
unity-color-panel.desktop
unity-control-center.desktop
unity-credentials-panel.desktop
unity-datetime-panel.desktop
unity-deja-dup-panel.desktop
unity-display-panel.desktop
unity-info-panel.desktop
unity-keyboard-panel.desktop
unity-lens-photos.desktop
unity-mouse-panel.desktop
unity-network-panel.desktop
unity-power-panel.desktop
unity-region-panel.desktop
unity-scope-gdrive.desktop
unity-screen-panel.desktop
unity-sound-panel.desktop
unity-tweak-tool.desktop
unity-universal-access-panel.desktop
unity-user-accounts-panel.desktop
unity-wacom-panel.desktop
unitywebappsqmllauncher.desktop
update-accounts.desktop
update-manager.desktop
usb-creator-gtk.desktop
vino-preferences.desktop
vlc.desktop
webbrowser-app.desktop
xdiagnose.desktop
yelp.desktop

最佳解决方法

由于它仅限于您的用户帐户,因此必须与您的用户有关。

也许你的主文件夹中的一个.desktop文件正在绊倒启动器?您可以尝试将这些文件夹中的文件移动到其他位置:

  • /home/<youruser>/.gnome/apps/

  • /home/<youruser>/.local/usr/share/applications/

例如

$ mkdir backup_local
$ mkdir backup_gnome
$ mv .local/share/applications/*.desktop backup_local/
$ mv .gnome/apps/*.desktop backup_gnome/

然后注销,登录并查看它是否有任何改变?如果没有帮助,您可以随时将它们移回。如果确实有帮助,请尝试将它们逐个移动到哪个文件是罪魁祸首。

编辑:你可以找出哪一个是畸形的:

  1. 安装desktop-file-utils包:

    sudo apt-get install desktop-file-utils 
    
  2. 使用desktop-file-validate检查每个.desktop文件的有效性:

    desktop-file-validate .local/share/applications/*.desktop
    desktop-file-validate .gnome/apps/*.desktop
    

    或者当然,如果您已经移动它,则在不同的位置。如果所有文件都正常,它将不打印任何内容。如果任何文件格式错误,则每行会打印一条错误消息。

    您可能还想检查其他桌面文件以获得良好的衡量标准:

    desktop-file-validate /usr/share/applications/*.desktop
    

次佳解决方法

在我在Ubuntu 14.04 LTS会话期间的某个时刻,应用程序搜索停止响应,显示相同的错误。我发现的解决方案是打开终端(Ctrl Alt T)并杀死原始范围

$ kill $(pgrep -f unity-scope-home/unity-scope-home) 

范围已重新启动,应用程序搜索已恢复其功能

第三种解决方法

实际上,登录到访客会话并重新登录,因为主要用户只是解决了问题,因为我仍然不明白为什么……但在此之前,我花时间尝试上述命令行,这对我的情况没有任何积极影响。肯定是一种重置清洁方式的方法,这些.desktop文件,这显然是问题,将被赞赏,或甚至一种方式来取消它们以防万一。无论如何

第四种方法

您是否删除了Zeitgeist数据库并重启?即:

rm -rf ~/.local/share/zeitgeist

这似乎是最合乎逻辑的事情。在下次登录时,最多允许几分钟时间让应用程序再次显示。

请注意,这与重新安装Zeitgeist不同,后者在这种情况下没用,恕我直言。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/1994.html,未经允许,请勿转载。