f.lux f.lux forum
    • Recent
    • Popular
    • Register
    • Login

    BUG: 4.120: Constant polling of file preset.json.

    Scheduled Pinned Locked Moved Windows v4
    2 Posts 2 Posters 497 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      voidp
      last edited by

      F.lux 4.120 for Windows polls the file "preset.json" once per second.

      It's not clear why this is necessary. If f.lux is monitoring the file for changes, it would be preferable for it to establish some kind of callback with the system to be notified of changes rather than open/read/close the file every second.

      On my system, the file is located at: C:\Users<username>\AppData\Local\FluxSoftware\Flux\media\preset.json.

      See: https://stackoverflow.com/questions/931093/how-do-i-make-my-program-watch-for-file-modification-in-c

      1 Reply Last reply
      Reply Quote 0
      • herfH
        herf
        last edited by

        Thanks - we will fix. This was only supposed to update when you pull down the menu (otherwise it can cache because it's not changing).

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors