INI option log_file_entry.

This commit is contained in:
sorgelig
2021-07-15 18:30:12 +08:00
parent 2a8d2271a5
commit 8ca10b48a7
4 changed files with 18 additions and 9 deletions

View File

@@ -4415,15 +4415,17 @@ 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 (cfg.log_file_entry)
{
//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)
{