From 0f2c2f2ec607765046419ecaaf9296f0fee7c49a Mon Sep 17 00:00:00 2001 From: zhangpengfei Date: Wed, 13 Jan 2021 15:30:42 +0800 Subject: [PATCH] Update desktop file --- data/ukui-search.desktop | 3 +++ debian/ukui-search.install | 3 ++- libsearch/index/inotify-index.cpp | 4 ++-- src/src.pro | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/data/ukui-search.desktop b/data/ukui-search.desktop index 14aa071..eee82ba 100644 --- a/data/ukui-search.desktop +++ b/data/ukui-search.desktop @@ -7,4 +7,7 @@ Comment[zh_CN]=全局搜索 Exec=usr/bin/ukui-search %U Type=Application Icon=ukui-search +X-UKUI-AutoRestart=true +OnlyShowIn=UKUI +X-UKUI-Autostart-Phase=Application Terminal=false diff --git a/debian/ukui-search.install b/debian/ukui-search.install index fbfdf03..d6d6532 100644 --- a/debian/ukui-search.install +++ b/debian/ukui-search.install @@ -1,2 +1,3 @@ usr/bin/ukui-search -/usr/share/ukui-search/translations/*.qm +etc/xdg/autostart/*.desktop +usr/share/ukui-search/translations/*.qm diff --git a/libsearch/index/inotify-index.cpp b/libsearch/index/inotify-index.cpp index 913380c..45d8aa5 100644 --- a/libsearch/index/inotify-index.cpp +++ b/libsearch/index/inotify-index.cpp @@ -112,13 +112,13 @@ void InotifyIndex::run(){ if (numRead == -1) { qDebug() << "read"; } - qDebug() << "Read " << numRead << " bytes from inotify fd"; +// qDebug() << "Read " << numRead << " bytes from inotify fd"; /* Process all of the events in buffer returned by read() */ for (p = buf; p < buf + numRead;) { struct inotify_event * event = reinterpret_cast(p); - qDebug() << "Read Event: " << currentPath[event->wd] << QString(event->name) << event->cookie << event->wd << event->mask; +// qDebug() << "Read Event: " << currentPath[event->wd] << QString(event->name) << event->cookie << event->wd << event->mask; if(event->name[0] != '.'){ qDebug() << QString(currentPath[event->wd] + '/' + event->name); diff --git a/src/src.pro b/src/src.pro index 607edd1..5cb20f4 100644 --- a/src/src.pro +++ b/src/src.pro @@ -45,7 +45,8 @@ HEADERS += \ target.path = /usr/bin !isEmpty(target.path): INSTALLS += target -data.path = /usr/share/applications +#data.path = /usr/share/applications +data.path = /etc/xdg/autostart data.files += ../data/ukui-search.desktop INSTALLS += data