diff --git a/menu.cpp b/menu.cpp index bb5710e..e3736c2 100644 --- a/menu.cpp +++ b/menu.cpp @@ -4415,6 +4415,15 @@ void HandleUI(void) if (flist_nDirEntries()) { ScrollLongName(); // scrolls file name if longer than display line + + //Write out paths infos for external integration + FILE* filePtr = fopen("/tmp/CURRENTPATH","w"); + FILE* pathPtr = fopen("/tmp/FULLPATH","w"); + fprintf(filePtr, "%s", flist_SelectedItem()->altname); + fprintf(pathPtr, "%s", selPath); + fclose(filePtr); + fclose(pathPtr); + if (c == KEY_HOME) {