Update desktop file

This commit is contained in:
zhangpengfei 2021-01-13 15:30:42 +08:00
parent d48aebd08b
commit 0f2c2f2ec6
4 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -1,2 +1,3 @@
usr/bin/ukui-search
/usr/share/ukui-search/translations/*.qm
etc/xdg/autostart/*.desktop
usr/share/ukui-search/translations/*.qm

View File

@ -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<inotify_event *>(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);

View File

@ -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