you are viewing a single comment's thread
view the rest of the comments
[โ€“] [S] 2 points 2 years ago (1 child)

You could do it in any shell by replacing touch with a function or alias that sends a note to whatever GTK subsystem is responsible for the "recents" tab before making the file. A more comprehensive way would be either using inotify or kernel-level process tracing fuckery, but I'm not smart enough for that

  • source
  • parent
  • hideshow 1 child comment
  • True, but I was thinking the shell would be the best place. You can have with watch for file modifications preformed by the user and reach out to nautilus to update its recents. That way you donโ€™t have to watch for all inotify events on receiving user updates, and you get all tools not just touch

  • source
  • parent