1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Remove all links of an "apps" dir when it is removed or renamed

This commit is contained in:
Paul Cercueil
2013-07-18 21:34:03 -04:00
parent f308ed983b
commit 5e7bcf3a1f
2 changed files with 10 additions and 1 deletions

View File

@@ -58,6 +58,12 @@ int Monitor::run(void)
char buf[256];
read(fd, &event, len);
if (event.mask & (IN_DELETE_SELF | IN_MOVE_SELF)) {
inject_event(false, path.c_str());
break;
}
sprintf(buf, "%s/%s", path.c_str(), event.name);
if (!event_accepted(event))