commit
b225dfa49e
|
@ -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
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
usr/bin/ukui-search
|
||||
/usr/share/ukui-search/translations/*.qm
|
||||
etc/xdg/autostart/*.desktop
|
||||
usr/share/ukui-search/translations/*.qm
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue