Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf: fix reloading on IN_CREATE #2215

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Commits on Mar 18, 2024

  1. conf: fix reloading on IN_CREATE

    If the config file is a symlink, wayfire attempts to watch the parent
    directory so that, if replaced via a subsequent `ln -sf`, it'll still
    be notified. When notified, however, wayfire doesn't immediately
    reload the config file. Rather, as this event may be triggered by any
    file creation in the directory, we first make sure that the config file
    really is the one being created anew.
    
    Unfortunately, ln -sf is special: It'll create a randomly named file in
    the directory before renameat(2)ing it to the proper location. So it
    does generate an IN_CREATE event, but to know that the file was changed,
    we need to additionally monitor for IN_MOVED_TO.
    
    Fixes WayfireWM#2210.
    atalii committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    5a94379 View commit details
    Browse the repository at this point in the history