diff --git a/data/ukui-search-menu.desktop b/data/ukui-search-menu.desktop index d9dc4b1..62ca0e9 100644 --- a/data/ukui-search-menu.desktop +++ b/data/ukui-search-menu.desktop @@ -12,7 +12,7 @@ Exec=/usr/bin/ukui-search -s Type=Application Icon=kylin-search X-UKUI-AutoRestart=true -NoDisplay=true -OnlyShowIn=UKUI +#NoDisplay=true +#OnlyShowIn=UKUI X-UKUI-Autostart-Phase=Application Terminal=false diff --git a/frontend/mainwindow.cpp b/frontend/mainwindow.cpp index 04f660b..02c0d26 100644 --- a/frontend/mainwindow.cpp +++ b/frontend/mainwindow.cpp @@ -72,7 +72,7 @@ MainWindow::MainWindow(QWidget *parent) : initTimer(); m_sys_tray_icon = new QSystemTrayIcon(this); - m_sys_tray_icon->setIcon(QIcon::fromTheme("system-search-symbolic")); + m_sys_tray_icon->setIcon(QIcon::fromTheme("system-search-symbolic", QIcon(":/res/icons/edit-find-symbolic.svg"))); m_sys_tray_icon->setToolTip(tr("Global Search")); m_sys_tray_icon->show(); installEventFilter(this); diff --git a/libsearch/index/inotify-watch.cpp b/libsearch/index/inotify-watch.cpp index b7c0834..d28678c 100644 --- a/libsearch/index/inotify-watch.cpp +++ b/libsearch/index/inotify-watch.cpp @@ -401,7 +401,7 @@ void InotifyWatch::eventProcess(const char *buffer, ssize_t len) if(event->mask & IN_ISDIR) { f.setIsDir(); } - PendingFileQueue::getInstance(this)->enqueue(f); + PendingFileQueue::getInstance()->enqueue(f); if(event->mask & IN_ISDIR) { if(!QFileInfo(path).isSymLink()){