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

It is too easy to end up with multiple, and indeed conflicting, instances. (A documentation problem?) #882

Open
LinuxOnTheDesktop opened this issue May 30, 2023 · 0 comments

Comments

@LinuxOnTheDesktop
Copy link

LinuxOnTheDesktop commented May 30, 2023

Describe the bug

  1. I have Redshift set to run at boot and to load its settings from a configuration file.
  2. I have a shell script that turns Redshift off (for when I want it off).
  3. I have a shell script that turns Redshift on (for when I want redshift back on).

I found it hard to code 1 and 2, at least without ending up with (i) multiple instances of Redshift and indeed sometimes (ii) multiple coats of redness, to speak. In order to avoid those problems, I have had to make liberal use of redshift -x and sudo killall redshift. So doing does avoid problems i and ii but it does cause (iii) severe temporary flickering. How is one meant to toggle between Redshift working from a configuration file, on the one hand, and not doing anything (and undoing everything that it has done), on the other?

To Reproduce
Well, for one thing, consider the following.

redshift -c <pathToConfig> (or rather - because that command hangs for a while - redshift -c <pathToConfig> >/dev/null 2>&1 &)).
redshift -c -O -P -r -x (or redshift -c -P -r -x, i.e. without the -O flag).

After the second command, redshift continues to operate according to its configuration file (well, except for a hiatus of approximately one second).

Expected behavior
It should be easy to turn redshift on and off.

Software versions (please complete the following information):

  • OS: Linux
  • Redshift version: 1.12
  • Distribution: Mint
  • Redshift installed from: apt
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

1 participant