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

Two clashing redshift processes if systemd's startup of redshift isn't masked #66

Open
daver1691 opened this issue Jun 8, 2021 · 1 comment

Comments

@daver1691
Copy link

On Kubuntu 21.04, once the "redshift" package is installed, then by default, systemd will automatically start redshift, and will even promptly restart it again if you kill the process. (Kubuntu 20.10 and earlier did not do this by default). Since this is due to an update of the redshift package, I assume that this will be the default on other recent linux distros too.

If this applet is then installed via "Get new widgets" (I hope that it will become a default widget since it's being moved to phabricator) then it will start another redshift process causing the screen to flash color changes every second or two.

To "mask" (i.e. permanently disable) the systemd startup of redshift for the current user, issue this command:

systemctl --user mask redshift

Details:

The installation of version 1.12-4 of the redshift package creates a link that instructs systemd to start redshift:

/etc/systemd/user/default.target.wants/redshift.service -->
    /usr/lib/systemd/user/redshift.service

This link can be removed with the following command:

sudo systemctl --global disable redshift

Or this can be overridden and disabled for a single user with:

systemctl --user mask redshift

Which creates a link:

~/.config/systemd/user/redshift.service --> /dev/null

I assume that the easiest way to fix this problem is to have this applet create the above link.

@david-cortes
Copy link

@daver1691 Have you by any chance created any fork that does this step?

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

No branches or pull requests

2 participants