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

src/config/ConfigWatcher.cpp: watch both symlinks and canonical paths #9219

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

fufexan
Copy link
Member

@fufexan fufexan commented Jan 29, 2025

Describe your PR, what does it fix/add?

Adds misc:watch_symlinks, which makes inotify watch changes in the symlink, not in the file the symlink points to. This is especially useful on NixOS, and that's why it's disabled by default.

Wiki PR: hyprwm/hyprland-wiki#957

ConfigWatcher now watches both symlinks and regular files.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Should be good to go. Tested through hyprctl keyword as well.

Is it ready for merging, or does it need work?

Ready.

@vaxerski
Copy link
Member

why not just make it the default, and watch both the symlink itself and the pointed file?

@fufexan
Copy link
Member Author

fufexan commented Jan 29, 2025

Sure, can do.

@fufexan
Copy link
Member Author

fufexan commented Jan 29, 2025

@vaxerski how bout this

@fufexan fufexan changed the title src/config: add misc:watch_symlinks option src/config/ConfigWatcher.cpp: watch both symlinks and canonical paths Jan 29, 2025
@fufexan fufexan force-pushed the watch_symlinks branch 2 times, most recently from e37a093 to 42448ec Compare January 30, 2025 23:26
@vaxerski vaxerski merged commit 12b5034 into main Jan 31, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants