Skip to content

settings.js: remove file monitor #12819

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fredcw
Copy link
Contributor

@fredcw fredcw commented Apr 3, 2025

File monitor doesn't serve any useful purpose.

The only change is that a settings file will not be automatically be reloaded after being manually edited. The only place where a settings file is changed outside of settings.js is in xlet-settings.py but this calls remoteUpdate() method to trigger callbacks (via dbus).

If changing a setting's bound value via settings.js was intended to trigger it's callback, then this hasn't worked since at least 2016 (f97a3e4), so this PR makes no change in that respect. If it's desired to trigger callbacks on every change (via settings.js) to a setting's value then a file monitor is an unnecessary and very inefficient way to do it anyway.

Mitigates against #9920 , linuxmint/cinnamon-spices-applets#6866 (comment)

File monitor doesn't serve any useful purpose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant