Merge pull request #175 from iaom/0313-dev
[Fix] mkfifo fail when fifo path is not exits;
This commit is contained in:
commit
caac46c16c
|
@ -145,6 +145,11 @@ int main(int argc, char *argv[])
|
|||
printf("Home not exits!!");
|
||||
::sleep(1);
|
||||
}
|
||||
|
||||
QDir fifoDir = QDir(QDir::homePath()+"/.config/org.ukui/ukui-search");
|
||||
if(!fifoDir.exists())
|
||||
qDebug()<<"create fifo path"<<fifoDir.mkpath(fifoDir.absolutePath());
|
||||
|
||||
unlink(UKUI_SEARCH_PIPE_PATH);
|
||||
int retval = mkfifo(UKUI_SEARCH_PIPE_PATH, 0777);
|
||||
if(retval == -1)
|
||||
|
|
Loading…
Reference in New Issue